/*------------------------------------------------------------------------------

Publication: Schakel, W. (2020) Representing the Rich: Economic and Political
	Inequality in Established Democracies. University of Amsterdam: Doctoral
	Dissertation.

Chapter: 3

Description: This do-file prepares the various datasets by harmonizing the
	variable names and, after that, calculating the level of agreement with
	policy change in each survey question. NOTE: IT IS NOT NECESSARY TO RUN THIS
	DO-FILE TO REPLICATE THE CHAPTER, BECAUSE THIS DO-FILE CONSTRUCTS THE
	SCHAKEL_2020_CHAPTER2_1_DATA FILE WHICH IS PROVIDED WITH THE SUPPLEMENTARY
	MATERIAL. However, the file is still included with the replication materials
	for the sake of transparancy, as it shows how the various sources were
	transformed into the data file used in the analyses.

Sections:

    1-13. Centerdata Telepanel
   14-16. Citizens' Outlooks Barometer
   17-35. Cultural Changes in the Netherlands
   36-67. EenVandaag Survey Panel
   68-72. Eurobarometer
	  73. European Election Studies 2004
	  74. European Values Study 2008
   75-76. Family Survey Dutch Population
	  77. Income Inequality, Income Politics and Redistribution Preferences
	  78. International Social Survey Programme 2006
	  79. Individual Freedom of Choice in the Field of Social Insurance
   80-82. LISS Panel
  83-108. NIPO Weekly Surveys
 109-115. Dutch Parliamentary Election Studies
     116. Public Opinion on Social Security and Labor in the Netherlands
     117. Justice Criteria and Income Inequality
     118. Sociocultural Developments in the Netherlands
     119. Socioeconomic Developments in the Netherlands
     120. Predicting Preferences

Data: See the overview of sources below (in alphabetical order). All internet
	pages were accessed on 18 March 2019. The same sources are provided at the
	end of the online appendices, but personally I think this list is easier to
	navigate.

	Centerdata Telepanel: Asylum Seekers, 1996
		Source: https://doi.org/10.17026/dans-x2s-r6rv

	Centerdata Telepanel: Changes in the Dutch Broadcasting System, 1996
		Source: https://doi.org/10.17026/dans-xrk-3z7e

	Centerdata Telepanel: Criminality in the Netherlands, 1996
		Source: https://doi.org/10.17026/dans-xa4-rh2h

	Centerdata Telepanel: De Winkelsluitingswet, 1994
		Source: https://doi.org/10.17026/dans-zb8-m92v

	Centerdata Telepanel: Ethics: Abortion, 1995
		Source: https://doi.org/10.17026/dans-z8r-672p

	Centerdata Telepanel: Genetische Manipulatie, 1999
		Source: https://doi.org/10.17026/dans-zen-ne92

	Centerdata Telepanel: Membership of the Dutch Party SGP, 1993
		Source: https://doi.org/10.17026/dans-xcs-7swv

	Centerdata Telepanel: Political Reforms in the Netherlands, 1995
		Source: https://doi.org/10.17026/dans-294-jjas

	Centerdata Telepanel: Rekeningrijden, 1999
		Source: https://doi.org/10.17026/dans-xc9-y5jr

	Centerdata Telepanel: Smoking Habits, 1995
		Source: https://doi.org/10.17026/dans-253-xju9

	Centerdata Telepanel: Smoking, 1997
		Source: https://doi.org/10.17026/dans-xnx-yab3

	Centerdata Telepanel: Voluntary Work, 1995
		Source: https://doi.org/10.17026/dans-258-t2fp

	Centerdata Telepanel: Zinloos Geweld, 1999
		Source: https://doi.org/10.17026/dans-xvj-mbum

	Citizens' Outlooks Barometer, 2008, 2011 and 2012
		Source: Not publicly available. These surveys were conducted by the
		Netherlands Institute for Socal Research. More information is available
		here (in Dutch): https://www.scp.nl/Onderzoek/Bronnen/Beknopte_onderzoek
		sbeschrijvingen/Continu_onderzoek_burgerperspectieven_COBAccess. Access
		to the data was granted by Paul Dekker (p.dekker@scp.nl).

	Cultural Changes in the Netherlands, 1979
		Source: https://doi.org/10.17026/dans-x9n-vht6

	Cultural Changes in the Netherlands, 1980
		Source: https://doi.org/10.17026/dans-225-usqm

	Cultural Changes in the Netherlands, 1981
		Source: https://doi.org/10.17026/dans-x9p-uabn

	Cultural Changes in the Netherlands, 1983
		Source: https://doi.org/10.17026/dans-xn9-nwph

	Cultural Changes in the Netherlands, 1985
		Source: https://doi.org/10.17026/dans-x2s-qwnr

	Cultural Changes in the Netherlands, 1986
		Source: https://doi.org/10.17026/dans-znd-k7ek

	Cultural Changes in the Netherlands, 1987
		Source: https://doi.org/10.17026/dans-xjh-9b4e

	Cultural Changes in the Netherlands, 1991
		Source: https://doi.org/10.17026/dans-xqq-zgn2

	Cultural Changes in the Netherlands, 1992
		Source: https://doi.org/10.17026/dans-zyj-aq6b

	Cultural Changes in the Netherlands, 1993
		Source: https://doi.org/10.17026/dans-xrw-du6s

	Cultural Changes in the Netherlands, 1994
		Source: https://doi.org/10.17026/dans-xmn-d4k6

	Cultural Changes in the Netherlands, 1995
		Source: https://doi.org/10.17026/dans-294-z7gu

	Cultural Changes in the Netherlands, 1996
		Source: https://doi.org/10.17026/dans-zew-77xr

	Cultural Changes in the Netherlands, 1998
		Source: https://doi.org/10.17026/dans-x49-bc4k

	Cultural Changes in the Netherlands, 2000
		Source: https://doi.org/10.17026/dans-zw4-sphe

	Cultural Changes in the Netherlands, 2002
		Source: https://doi.org/10.17026/dans-xu4-6sch

	Cultural Changes in the Netherlands, 2008
		Source: https://doi.org/10.17026/dans-z2s-f36j

	Cultural Changes in the Netherlands, 2010
		Source: https://doi.org/10.17026/dans-xcw-4x4c

	Cultural Changes in the Netherlands, 2012
		Source: https://doi.org/10.17026/dans-x3p-uzqn

	Dutch Parliamentary Election Studies, 1981
		Source: https://doi.org/10.17026/dans-228-8svu

	Dutch Parliamentary Election Studies, 1989
		Source: https://doi.org/10.17026/dans-xzm-bskq

	Dutch Parliamentary Election Studies, 1994
		Source: https://doi.org/10.17026/dans-27g-npxj

	Dutch Parliamentary Election Studies, 2002/2003
		Source: https://doi.org/10.17026/dans-zk3-7d56

	Dutch Parliamentary Election Studies, 2006
		Source: https://doi.org/10.17026/dans-x7h-hmh5

	Dutch Parliamentary Election Studies, 2010
		Source: https://doi.org/10.17026/dans-xvh-tghy

	Dutch Parliamentary Election Studies, 2012
		Source: https://doi.org/10.17026/dans-x5h-akds

	EenVandaag Survey Panel, 2006-2012
		Source: Not publicly available. These surveys were conducted by the
		Dutch news program EenVandaag. More information is available here (in
		Dutch): https://eenvandaag.avrotros.nl/panels/opiniepanel/uitleg/.
		Access to the data was granted by Tom van der Meer
		(t.w.g.vandermeer@uva.nl).

	Eurobarometer 21: Political Cleavages in the European Community, 1984
		Source: https://doi.org/10.4232/1.10878

	Eurobarometer 36: Regional Identity and Perceptions of the Third World, 1991
		Source: https://doi.org/10.4232/1.10848

	Eurobarometer 39.0: European Community Policies and Family Life, 1993
		Source: https://doi.org/10.4232/1.10905

	Eurobarometer 44.3: Health Care Issues And Public Security, 1996
		Source: https://doi.org/10.4232/1.10920

	Eurobarometer 46.0: Personal Health, Energy, Development Aid, and the Common
		European Currency, 1996
		Source: https://doi.org/10.4232/1.10923

	European Election Studies, 2004
		Source: https://doi.org/10.4232/1.10086

	European Values Study, 2008
		Source: https://doi.org/10.4232/1.10155

	Family Survey Dutch Population, 2000
		Source: https://doi.org/10.17026/dans-z8n-9wj5

	Family Survey Dutch Population, 2003
		Source: https://doi.org/10.17026/dans-xm2-5fue

	Income Inequality, Income Politics and Redistribution Preferences, 1982
		Source: https://doi.org/10.17026/dans-2cr-zfhk

	International Social Survey Programme, 2006
		Source: https://doi.org/10.4232/1.4700

	Individual Freedom of Choice in the Field of Social Insurance, 2001
		Source: https://doi.org/10.17026/dans-xv7-d4cu

	Justice Criteria and Income Inequality, 1987
		Source: https://doi.org/10.17026/dans-27q-u74a

	LISS Panel: Alcohol and Drugs, 2008
		Source: https://www.dataarchive.lissdata.nl/study_units/view/89

	LISS Panel: The Public's Opinion on the Control of Terrorism, 2010
		Source: https://www.dataarchive.lissdata.nl/study_units/view/186

	LISS Panel: Privatization and Corporatization, 2012
		Source: https://www.dataarchive.lissdata.nl/study_units/view/369

	LISS Panel: Personal Responsibility, 2012
		Source: https://www.dataarchive.lissdata.nl/study_units/view/370

	NIPO Weekly Surveys, 1982 (Weeks 15 and 36)
		Source: https://doi.org/10.17026/dans-z4s-be79

	NIPO Weekly Surveys, 1983 (Weeks 6, 18 and 36)
		Source: https://doi.org/10.17026/dans-xa5-2sp6

	NIPO Weekly Surveys, 1984 (Weeks 9, 11 and 41)
		Source: https://doi.org/10.17026/dans-xu2-6exz

	NIPO Weekly Surveys, 1985 (Weeks 1 and 27)
		Source: https://doi.org/10.17026/dans-27p-yac7

	NIPO Weekly Surveys, 1986 (Weeks 19, 25, 30 and 43)
		Source: https://doi.org/10.17026/dans-xyt-cj77

	NIPO Weekly Surveys, 1987 (Week 13)
		Source: https://doi.org/10.17026/dans-xpm-hnzb

	NIPO Weekly Surveys, 1988 (Weeks 27, 33 and 50)
		Source: https://doi.org/10.17026/dans-zmb-nfhe

	NIPO Weekly Surveys, 1990 (Weeks 32 and 34)
		Source: https://doi.org/10.17026/dans-zgx-gjpx

	NIPO Weekly Surveys, 1991 (Weeks 14 and 43)
		Source: https://doi.org/10.17026/dans-zbu-cyap

	NIPO Weekly Surveys, 1992 (Weeks 11 and 26)
		Source: https://doi.org/10.17026/dans-z49-kpm7

	NIPO Weekly Surveys, 1993 (Week 35)
		Source: https://doi.org/10.17026/dans-x33-qdy8

	NIPO Weekly Surveys, 1994 (Week 10)
		Source: https://doi.org/10.17026/dans-2xc-te8w

	Public Opinion on Social Security and Labor in the Netherlands, 1996
		Source: https://doi.org/10.17026/dans-xv9-psk7

	Sociocultural Developments in the Netherlands, 1995
		Source: https://doi.org/10.17026/dans-zdq-4ru5

	Socioeconomic Developments in the Netherlands, 1998
		Source: https://doi.org/10.17026/dans-xuf-dvun

------------------------------------------------------------------------------*/

global data	"YOUR PATH HERE"

/*------------------------------------------------------------------------------
 1. Centerdata Telepanel: Asylum Seekers
------------------------------------------------------------------------------*/

/* The preparation follows the same steps in all 119 datasets: I generate
variables identifying the datasets, the year of the survey, respondents' income,
respondents' education, respondents' gender, respondents' voting behavior,
survey weights whenever they are available and respondents' preferences towards
the potential policy changes contained in the survey. All other variables are
subsequently dropped. */
use "$data\Centerdata - Asylum seekers.dta", clear

gen data=1
gen year=1996

* Whenever a dataset has an income variable with more than 20 groups, I limit
* this to 20 to speed up the process of predicting preferences (see note under
* section 120).
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<11
gen gender=geslacht

* I generate a random variable in this dataset and several others because voting
* behavior is missing. This is dropped later on (see note under section 120).
gen vote=runiformint(0,1)
gen weight=1
recode terugst (1/3=0) (5/7=1) (4=.), gen(q430)
recode koppel (1=0) (3=1) (2 4=.), gen(q431)
keep data-q431

save "$data\data1.dta", replace

/*------------------------------------------------------------------------------
 2. Centerdata Telepanel: Changes in the Dutch Broadcasting System
------------------------------------------------------------------------------*/

use "$data\Centerdata - Changes in the Dutch broadcasting system.dta", clear

gen data=2
gen year=1996
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<11
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode publ (1=0) (2/4=1) (0=.), gen(q433)
recode opslag (2=0) (0=.), gen(q434)
recode maxi (3=0) (0 2=.), gen(q436)
keep data-q436

save "$data\data2.dta", replace

/*------------------------------------------------------------------------------
 3. Centerdata Telepanel: Criminality in the Netherlands
------------------------------------------------------------------------------*/

use "$data\Centerdata - Criminality in the Netherlands.dta", clear

gen data=3
gen year=1996
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<11
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode levensl (1=0) (2/6=1) (7=.), gen(q438)
keep data-q438

save "$data\data3.dta", replace

/*------------------------------------------------------------------------------
 4. Centerdata Telepanel: De Winkelsluitingswet
------------------------------------------------------------------------------*/

use "$data\Centerdata - De winkelsluitingswet.dta", clear

gen data=4
gen year=1994
gen inc=inkomen
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode voor (2 3=1) (4=0) (5=.), gen(q229)
keep data-q229

save "$data\data4.dta", replace

/*------------------------------------------------------------------------------
 5. Centerdata Telepanel: Ethics: Abortion
------------------------------------------------------------------------------*/

use "$data\Centerdata - Ethics abortion.dta", clear

gen data=5
gen year=1995
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
drop gender
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode subsidie (2=1) (1=0) (3=.), gen(q242)
recode overgen (1 2=0) (3=1) (4=.), gen(q256)
keep data-q256

save "$data\data5.dta", replace

/*------------------------------------------------------------------------------
 6. Centerdata Telepanel: Genetische Manipulatie
------------------------------------------------------------------------------*/

use "$data\Centerdata - Genetische manipulatie.dta", clear

gen data=6
gen year=1999
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode gentest1 (1/3=0) (4=1) (5=.), gen(q525)
recode klonen (2=0) (3=.), gen(q526)
keep data-q526

save "$data\data6.dta", replace

/*------------------------------------------------------------------------------
 7. Centerdata Telepanel: Membership of the Dutch Party SGP
------------------------------------------------------------------------------*/

use "$data\Centerdata - Membership of the Dutch party SGP.dta", clear

gen data=7
gen year=1993
gen inc=inkomen
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode verbod (2=1) (4 5=0) (3=.), gen(q219)
keep data-q219

save "$data\data7.dta", replace

/*------------------------------------------------------------------------------
 8. Centerdata Telepanel: Political Reforms in the Netherlands
------------------------------------------------------------------------------*/

use "$data\Centerdata - Political reforms in the Netherlands.dta", clear

gen data=8
gen year=1995
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode corrref (2=1) (4 5=0) (3=.), gen(q265)
gen q260=stembt1
gen q261=stembt2
gen q262=stembt3
gen q263=stembt4
gen q264=stembt5
keep data-q264

save "$data\data8.dta", replace

/*------------------------------------------------------------------------------
 9. Centerdata Telepanel: Rekeningrijden
------------------------------------------------------------------------------*/

use "$data\Centerdata - Rekeningrijden.dta", clear

gen data=9
gen year=1999
egen inc=cut(nettohh), group(20)
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
replace inc=inc+1
recode kans (2=0) (3=.), gen(q531)
keep data-q531

save "$data\data9.dta", replace

/*------------------------------------------------------------------------------
 10. Centerdata Telepanel: Smoking Habits
------------------------------------------------------------------------------*/

use "$data\Centerdata - Smoking habits.dta", clear

gen data=10
gen year=1995
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode verkoop (2=1) (4 5=0) (3=.), gen(q273)
recode reclame (1 2=0) (3 4=1) (5=.), gen(q274)
recode accijns (2/4=0), gen(q275)
recode totvb (2=1) (4 5=0) (3=.), gen(q278)
keep data-q278

save "$data\data10.dta", replace

/*------------------------------------------------------------------------------
 11. Centerdata Telepanel: Smoking
------------------------------------------------------------------------------*/

use "$data\Centerdata - Smoking.dta", clear

gen data=11
gen year=1997
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode accigatt (1/3=0) (4 5=1) (6=.), gen(q476)
recode prmdom (2=0) (3=.), gen(q478)
keep data-q478

save "$data\data11.dta", replace

/*------------------------------------------------------------------------------
 12. Centerdata Telepanel: Voluntary Work
------------------------------------------------------------------------------*/

use "$data\Centerdata - Voluntary work.dta", clear

gen data=12
gen year=1995
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode stel8 (2=1) (4 5=0) (3=.), gen(q959)
keep data-q959

save "$data\data12.dta", replace

/*------------------------------------------------------------------------------
 13. Centerdata Telepanel: Zinloos Geweld
------------------------------------------------------------------------------*/

use "$data\Centerdata - Zinloos geweld.dta", clear

gen data=13
gen year=1999
egen inc=cut(nettohh), group(20)
replace inc=inc+1
gen edu=scholing if scholing<10
gen gender=geslacht
gen vote=runiformint(0,1)
gen weight=1
recode meldpunt (2=0) (3=.), gen(q534)
keep data-q534

save "$data\data13.dta", replace

/*------------------------------------------------------------------------------
 14. Citizens' Outlooks Barometer, 2008
------------------------------------------------------------------------------*/

use "$data\Continu Onderzoek Burgerperspectieven.dta", clear

gen data=14
gen year=2008
gen inc=INKOMENP if INKOMENP<4
recode OPLEIDIN (1=7) (2=6) (3=5) (5=3) (6=2) (7=1) (98=.), gen(edu)
gen gender=GESLACHT
recode VC028 (3=0) (2 4 5=.), gen(vote)
gen weight=WT
recode VD012i VD012h VD012l VD012g (4 5=1) (1/3=0) (6=.) if METING==1,		///
	gen(q675 q683 q685 q687)
recode VD012d VD012p (2=1) (3/5=0) (6=.) if METING==1, gen(q678 q682)
keep if METING==1
keep data-q682

save "$data\data14.dta", replace

/*------------------------------------------------------------------------------
 15. Citizens' Outlooks Barometer, 2011
------------------------------------------------------------------------------*/

use "$data\Continu Onderzoek Burgerperspectieven.dta", clear

gen data=15
gen year=2011
gen inc=INKOMENP if INKOMENP<4
recode OPLEIDIN (1=7) (2=6) (3=5) (5=3) (6=2) (7=1) (98=.), gen(edu)
gen gender=GESLACHT
recode VC028 (3=0) (2 4 5=.), gen(vote)
gen weight=WT
recode VD201 (1/3=0) (4 5=1) (6 7=.), gen(q750)
keep if METING==16
keep data-q750

save "$data\data15.dta", replace

/*------------------------------------------------------------------------------
 16. Citizens' Outlooks Barometer, 2012
------------------------------------------------------------------------------*/

use "$data\Continu Onderzoek Burgerperspectieven.dta", clear

gen data=16
gen year=2012
gen inc=INKOMENP if INKOMENP<4
recode OPLEIDIN (1=7) (2=6) (3=5) (5=3) (6=2) (7=1) (98=.), gen(edu)
gen gender=GESLACHT
recode VC028 (3=0) (2 4 5=.), gen(vote)
gen weight=WT
recode VD012i VD012h VD012g (4 5=1) (1/3=0) (6=.) if METING==20, gen(q774	///
	q782 q786)
recode VD012p (2=1) (3/5=0) (6=.) if METING==20, gen(q781)
keep if METING==20
keep data-q781

save "$data\data16.dta", replace

/*------------------------------------------------------------------------------
 17. Cultural Changes in the Netherlands, 1979
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1979.dta", clear

gen data=17
gen year=1979
gen inc=var462 if var462>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var122 var121 var105 (2=1) (4 5=0) (-6 -3 3=.), gen(q800 q803 q822)
recode var680a var680b var680f (-6=.), gen(q815 q816 q819)
keep data-q819

save "$data\data17.dta", replace

/*------------------------------------------------------------------------------
 18. Cultural Changes in the Netherlands, 1980
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1980.dta", clear

gen data=18
gen year=1980
gen inc=oct462 if oct462!=0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var110 var113 var115 (2=1) (3/5=0) (-6 -3=.), gen(q813 q830 q833)
recode var111 var112 var117 (1/3=0) (4 5=1) (-6 -3=.), gen(q814 q831 q834)
keep data-q834

save "$data\data18.dta", replace

/*------------------------------------------------------------------------------
 19. Cultural Changes in the Netherlands, 1981
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1981.dta", clear

gen data=19
gen year=1981
gen inc=oct462 if oct462!=0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var105 (2=1) (4 5=0) (-6 -3 3=.), gen(q911)
recode var876 (1 2=0) (3=1) (-6=.), gen(q871)
keep data-q871

save "$data\data19.dta", replace

/*------------------------------------------------------------------------------
 20. Cultural Changes in the Netherlands, 1983
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1983.dta", clear

gen data=20
gen year=1983
gen inc=oct462 if oct462!=0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var122 var121 (2=1) (4 5=0) (-6 -3 3=.), gen(q874 q889)
recode var113 (1/3=0) (4 5=1) (-6 -3=.), gen(q919)
recode var876 (1 2=0) (3=1) (-6=.), gen(q955)
keep data-q955

save "$data\data20.dta", replace

/*------------------------------------------------------------------------------
 21. Cultural Changes in the Netherlands, 1985
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1985.dta", clear

gen data=21
gen year=1985
gen inc=var462 if var462>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var117 (1/3=0) (4 5=1) (-7 -6 -3=.), gen(q927)
recode var105 (2=1) (4 5=0) (-6 -3 3=.), gen(q912)
keep data-q912

save "$data\data21.dta", replace

/*------------------------------------------------------------------------------
 22. Cultural Changes in the Netherlands, 1986
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1986.dta", clear

gen data=22
gen year=1986
gen inc=var462 if var462>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var607 (2=1) (4 5=0) (-6 -3 3=.), gen(q841)
recode var111 (1/3=0) (4 5=1) (-6 -3=.), gen(q906)
keep data-q906

save "$data\data22.dta", replace

/*------------------------------------------------------------------------------
 23. Cultural Changes in the Netherlands, 1987
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1987.dta", clear

gen data=23
gen year=1987
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode int049 int047 var122 var121 (2=1) (4 5=0) (-7 -6 -3 3=.),			///
	gen(q158 q160 q875 q890)
recode var113 (2=1) (3/5=0) (-6 -3=.), gen(q921)
recode var876 (3=1) (1 2=0) (-6=.), gen(q956)
keep data-q956

save "$data\data23.dta", replace

/*------------------------------------------------------------------------------
 24. Cultural Changes in the Netherlands, 1991
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1991.dta", clear

gen data=24
gen year=1991
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var1022 (1=0) (2=1) (-6 -5 -3=.), gen(q203)
recode var1001 var1002 (2/4=0) (-6 -3=.), gen(q849 q850)
recode var122 var121 (2=1) (4 5=0) (-6 -3 3=.), gen(q876 q891)
recode var113 (2=1) (3/5=0) (-6 -3=.), gen(q922)
keep data-q922

save "$data\data24.dta", replace

/*------------------------------------------------------------------------------
 25. Cultural Changes in the Netherlands, 1992
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1992.dta", clear

gen data=25
gen year=1992
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var1012 (2 3=0) (-6 -3=.), gen(q847)
recode var105 (2=1) (4 5=0) (-7 -6 -3 3=.), gen(q914)
recode var1034 (2=0) (-6 -3 3=.), gen(q853)
recode var111 var112 var117 (1/3=0) (4 5=1) (-7 -6 -3=.), gen(q907 q924 q928)
keep data-q928

save "$data\data25.dta", replace

/*------------------------------------------------------------------------------
 26. Cultural Changes in the Netherlands, 1993
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1993.dta", clear

gen data=26
gen year=1993
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var1063 (2=0) (-6 -3 3=.), gen(q855)
recode var680a (-6=.), gen(q908)
keep data-q908

save "$data\data26.dta", replace

/*------------------------------------------------------------------------------
 27. Cultural Changes in the Netherlands, 1994
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1994.dta", clear

gen data=27
gen year=1994
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode int380 var122 (2=1) (4 5=0) (-7 -6 -3 3=.), gen(q863 q877)
keep data-q877

save "$data\data27.dta", replace

/*------------------------------------------------------------------------------
 28. Cultural Changes in the Netherlands, 1995
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1995.dta", clear

gen data=28
gen year=1995
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var121 (2=1) (4 5=0) (-6 -3 3=.), gen(q892)
keep data-q892

save "$data\data28.dta", replace

/*------------------------------------------------------------------------------
 29. Cultural Changes in the Netherlands, 1996
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1996.dta", clear

gen data=29
gen year=1996
gen inc=var931 if var931>0
gen edu=var006 if var006>0
gen gender=var001
recode var274 (3=0) (-6 -2 2=.), gen(vote)
gen weight=1
recode var1177 (3=0) (-6 -3 2=.), gen(q474)
recode var1187 (1=0) (2=1) (-6 -3=.), gen(q475)
recode var1001 var1002 (2/4=0) (-6 -3=.), gen(q935 q936)
recode var1034 var1063 var1066 (2=0) (-6 -3 3=.), gen(q937 q939 q940)
keep data-q940

save "$data\data29.dta", replace

/*------------------------------------------------------------------------------
 30. Cultural Changes in the Netherlands, 1998
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 1998.dta", clear

gen data=30
gen year=1998
gen inc=var931 if var931>0
gen edu=var006
gen gender=var001
recode var274 (3=0) (-2 2=.), gen(vote)
gen weight=1
recode var1210 (2=1) (3 4=0) (-3=.), gen(q867)
keep data-q867

save "$data\data30.dta", replace

/*------------------------------------------------------------------------------
 31. Cultural Changes in the Netherlands, 2000
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 2000.dta", clear

gen data=31
gen year=2000
gen inc=var462 if var462>0
gen edu=var006
gen gender=var001
recode var274 (3=0) (-2 2=.), gen(vote)
gen weight=1
recode var122 var121 (2=1) (4 5=0) (-3 3=.), gen(q878 q893)
keep data-q893

save "$data\data31.dta", replace

/*------------------------------------------------------------------------------
 32. Cultural Changes in the Netherlands, 2002
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 2002.dta", clear

gen data=32
gen year=2002

* The top income categories are very sparse, so I group them together
recode var462 (23/27=22) (-3 -2=.), gen(inc)
gen edu=var006
gen gender=var001
recode var274 (3=0) (-2 2=.), gen(vote)
gen weight=1
recode int380 (2=1) (4 5=0) (-7 -6 -3 3=.), gen(q942)
keep data-q942

save "$data\data32.dta", replace

/*------------------------------------------------------------------------------
 33. Cultural Changes in the Netherlands, 2008
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 2008.dta", clear

gen data=33
gen year=2008
gen inc0=var462b if var462b>=0
egen inc=cut(inc0), group(20)
replace inc=inc + 1
gen edu=var006n if var006n>0
recode edu (8=7)
encode geslacht if geslacht!="9", gen(gender)
recode var274 (3=0) (-3 2 4=.), gen(vote)

* Although it's not necessary, I standardize the weight
egen weight=std(gewicht), mean(1) std(0.3)
recode var1210 (2=1) (3 4=0) (-3 -2=.), gen(q949)
recode var1318 (1=0) (2=1) (-3 3=.), gen(q952)
keep data year inc-q952

save "$data\data33.dta", replace

/*------------------------------------------------------------------------------
 34. Cultural Changes in the Netherlands, 2010
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 2010.dta", clear

gen data=34
gen year=2010
gen inc0=GESTINKH if GESTINKH>0
egen inc=cut(inc0), group(20)
replace inc=inc + 1
gen edu=Vltoplop if Vltoplop<6
gen gender=var001

* Voting is split into two variables for different parts of the sample
recode VAR274 (3=0) (-7 -3 2 4=.), gen(vote)
replace vote=1 if VAR274s==1 & vote==.
replace vote=0 if VAR274s==2 & vote==.
gen weight=gewicht

* Question 953 is split into two variables for different parts of the sample
recode VAR1318 (-7 -3 3=.) (1=0) (2=1), gen(q953)
replace q953=0 if VAR1318s==1 & q953==.
replace q953=1 if VAR1318s==2 & q953==.
keep data year inc-q953

save "$data\data34.dta", replace

/*------------------------------------------------------------------------------
 35. Cultural Changes in the Netherlands, 2012
------------------------------------------------------------------------------*/

use "$data\Culturele Veranderingen 2012.dta", clear

gen data=35
gen year=2012

* There are several income variables; I use disposable houshold income
gen inc=catbvrbestinkh if catbvrbestinkh>0
gen edu=oplniv/10 if oplniv<99
gen gender=var001
recode VAR274s (3=0) (-3 2 4=.), gen(vote)
gen weight=weeg_cv
recode VAR1210 (2=1) (3 4=0) (-3=.), gen(q951)
recode V6708_r (2=1) (4 5=0) (-7 -3 3 6=.), gen(q954)
keep data-q954

save "$data\data35.dta", replace

/*------------------------------------------------------------------------------
 36. EenVandaag Survey Panel, Wave 07-12
------------------------------------------------------------------------------*/

* Note: post-stratification weights were added to the EenVandaag data before it
* was used here, using an iterative raking procedure. The do-file for this
* procedure is available upon request.
use "$data\EenVandaag.dta", clear

keep if wave==712
gen data=36
gen edu=eduold
gen inc=incold
recode votenow (1/10 16=1) (11 12=0) (13/15=.), gen(vote)
recode v0712d38 (2=0) (3 99999=.), gen(q1035)
keep data year inc edu gender vote weight q*

save "$data\data36.dta", replace

/*------------------------------------------------------------------------------
 37. EenVandaag Survey Panel, Wave 07-13
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==713
gen data=37
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0713d76 v0713d77 v0713d78 v0713d79 (2=0) (0 3=.),					///
	gen(q1036 q1037 q1038 q1039)
keep data year inc edu gender vote weight q*

save "$data\data37.dta", replace

/*------------------------------------------------------------------------------
 38. EenVandaag Survey Panel, Wave 07-15
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==715
gen data=38
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0715d73 (2/4=0) (5=.), gen(q1043)
keep data year inc edu gender vote weight q*

save "$data\data38.dta", replace

/*------------------------------------------------------------------------------
 39. EenVandaag Survey Panel, Wave 08-01
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==801
gen data=39
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0801d54 (1=0) (2=1) (3=.), gen(q1044)
keep data year inc edu gender vote weight q*

save "$data\data39.dta", replace

/*------------------------------------------------------------------------------
 40. EenVandaag Survey Panel, Wave 08-05
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==805
gen data=40
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0805d_1 (1=0) (2=1) (3=.), gen(q1046)
keep data year inc edu gender vote weight q*

save "$data\data40.dta", replace

/*------------------------------------------------------------------------------
 41. EenVandaag Survey Panel, Wave 08-11
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==811
gen data=41
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0811d71 (1=0) (2=1) (3=.), gen(q1056)
keep data year inc edu gender vote weight q*

save "$data\data41.dta", replace

/*------------------------------------------------------------------------------
 42. EenVandaag Survey Panel, Wave 08-14
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==814
gen data=42
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0814_29 (1=0) (2=1) (3=.), gen(q1058)
keep data year inc edu gender vote weight q*

save "$data\data42.dta", replace

/*------------------------------------------------------------------------------
 43. EenVandaag Survey Panel, Wave 09-01
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==901
gen data=43
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0901d71 (1 3=0) (2=1) (4=.), gen(q1061)
keep data year inc edu gender vote weight q*

save "$data\data43.dta", replace

/*------------------------------------------------------------------------------
 44. EenVandaag Survey Panel, Wave 09-02
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==902
gen data=44
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0902d81 (1=0) (2=1) (3=.), gen(q1062)
recode v0902d82 (1 3=1) (2 4=0) (5=.), gen(q1063)
recode v0902d82 (1 2=1) (3 4=0) (5=.), gen(q1499)
keep data year inc edu gender vote weight q*

save "$data\data44.dta", replace

/*------------------------------------------------------------------------------
 45. EenVandaag Survey Panel, Wave 09-03
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==903
gen data=45
gen edu=eduold
gen inc=incold
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0903_76 (2=0) (3=.), gen(q1072)
keep data year inc edu gender vote weight q*

save "$data\data45.dta", replace

/*------------------------------------------------------------------------------
 46. EenVandaag Survey Panel, Wave 09-04
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==904
gen data=46
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0904_46 (2=0) (3=.), gen(q1073)
keep data year inc edu gender vote weight q*

save "$data\data46.dta", replace

/*------------------------------------------------------------------------------
 47. EenVandaag Survey Panel, Wave 09-08
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==908
gen data=47
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0908_58 (1=0) (2=1) (3=.), gen(q1077)
keep data year inc edu gender vote weight q*

save "$data\data47.dta", replace

/*------------------------------------------------------------------------------
 48. EenVandaag Survey Panel, Wave 09-10
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==910
gen data=48
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v0910_61 (2=0) (3=.), gen(q1094)
keep data year inc edu gender vote weight q*

save "$data\data48.dta", replace

/*------------------------------------------------------------------------------
 49. EenVandaag Survey Panel, Wave 10-07
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1007
gen data=49
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1007d_2 (1=0) (2 3=1) (4=.), gen(q1113)
keep data year inc edu gender vote weight q*

save "$data\data49.dta", replace

/*------------------------------------------------------------------------------
 50. EenVandaag Survey Panel, Wave 10-08
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1008
gen data=50
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1008_10 (2=1) (4 5=0) (3 6=.), gen(q1133)
keep data year inc edu gender vote weight q*

save "$data\data50.dta", replace

/*------------------------------------------------------------------------------
 51. EenVandaag Survey Panel, Wave 10-11
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1011
gen data=51
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1011d4 v1011d3 v1011d2 v1011d0 (2=0) (3=.), gen(q1157 q1158 q1159 q1160)
keep data year inc edu gender vote weight q*

save "$data\data51.dta", replace

/*------------------------------------------------------------------------------
 52. EenVandaag Survey Panel, Wave 10-12
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1012
gen data=52
gen edu=eduold
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1012d0 v1012d3 v1012d18 (2=0) (3=.), gen(q1162 q1164 q1171)
recode v1012d4 (1=0) (2=1) (3=.), gen(q1163)
keep data year inc edu gender vote weight q*

save "$data\data52.dta", replace

/*------------------------------------------------------------------------------
 53. EenVandaag Survey Panel, Wave 10-22
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1022
gen data=53
gen edu=edunew
gen inc=incnew
recode votenow (1/11=1) (12 13=0) (14/16=.), gen(vote)
recode v1022d94 v1022d95 (1=0) (2=1) (3=.), gen(q1194 q1195)
keep data year inc edu gender vote weight q*

save "$data\data53.dta", replace

/*------------------------------------------------------------------------------
 54. EenVandaag Survey Panel, Wave 10-25
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1025
gen data=54
gen edu=edunew
gen inc=incnew
recode votenow (1/11=1) (12 13=0) (14/46483=.), gen(vote)
recode v1025d73 (1=0) (2=1) (3=.), gen(q1197)
keep data year inc edu gender vote weight q*

save "$data\data54.dta", replace

/*------------------------------------------------------------------------------
 55. EenVandaag Survey Panel, Wave 11-03
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1103
gen data=55
gen edu=edunew
gen inc=incnew
recode votenow (1/12 18=1) (13 15=0) (14 16 17=.), gen(vote)
recode v1103_16 v1103_18 v1103dd8 v1103_19 v1103dd9 (2=0) (3=.),			///
	gen(q1201 q1203 q1204 q1205 q1206)
keep data year inc edu gender vote weight q*

save "$data\data55.dta", replace

/*------------------------------------------------------------------------------
 56. EenVandaag Survey Panel, Wave 11-15
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1115
gen data=56
gen edu=edunew
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1115_37 v1115d67 v1115_73 v1115_78 v1115_83 (2=0) (3 99999=.),		///
	gen(q1254 q1255 q1257 q1258 q1259)
keep data year inc edu gender vote weight q*

save "$data\data56.dta", replace

/*------------------------------------------------------------------------------
 57. EenVandaag Survey Panel, Wave 12-01
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1201
gen data=57
gen edu=edunew
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1201_43 (1=0) (2=1) (3=.), gen(q1260)
keep data year inc edu gender vote weight q*

save "$data\data57.dta", replace

/*------------------------------------------------------------------------------
 58. EenVandaag Survey Panel, Wave 12-04
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1204
gen data=58
gen edu=edunew
gen inc=incnew
recode votenow (1/12=1) (13 14=0) (15/17=.), gen(vote)
recode v1204d_3 v1204d_6 v1204d_7 v1204d_9 v1204_10 v1204_12 v1204_13		///
	v1204_14 v1204_15 v1204_16 v1204_17 (2=0) (3=.), gen(q1265 q1268 q1269	///
	q1271 q1272 q1274 q1275 q1276 q1277 q1278 q1279)
keep data year inc edu gender vote weight q*

save "$data\data58.dta", replace

/*------------------------------------------------------------------------------
 59. EenVandaag Survey Panel, Wave 12-05
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1205
gen data=59
gen edu=edunew
gen inc=incnew
recode votenow (1/11 17 18=1) (12 13=0) (14/16=.), gen(vote)
recode v1205d_1 (2=0) (3 99999=.), gen(q1298)
keep data year inc edu gender vote weight q*

save "$data\data59.dta", replace

/*------------------------------------------------------------------------------
 60. EenVandaag Survey Panel, Wave 12-07
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1207
gen data=60
gen edu=edunew
gen inc=incnew
recode votenow (1/11 17 18=1) (12 13=0) (14/16=.), gen(vote)
recode v1207118 v1207120 v1207114 v1207113 v1207159 (2=0) (3=.),			///
	gen(q1301 q1304 q1305 q1306 q1315)
keep data year inc edu gender vote weight q*

save "$data\data60.dta", replace

/*------------------------------------------------------------------------------
 61. EenVandaag Survey Panel, Wave 12-09
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1209
gen data=61
gen edu=edunew
gen inc=incnew
recode votenow (1/11 17 18=1) (12 13=0) (14/16=.), gen(vote)
recode v1209d90 v1209d92 v1209d95 v1209d19 v1209_15 (2=0) (3=.),	///
	gen(q1326 q1328 q1330 q1338 q1342)
keep data year inc edu gender vote weight q*

save "$data\data61.dta", replace

/*------------------------------------------------------------------------------
 62. EenVandaag Survey Panel, Wave 12-12
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1212
gen data=62
gen edu=edunew
gen inc=incnew
recode votenow (1/11 17/19=1) (12 13=0) (14/16=.), gen(vote)
recode v1212d97 v1212d95 v1212d92 v1212d90 v1212d89 v1212d96 (2=0) (3=.),	///
	gen(q1360 q1361 q1362 q1364 q1365 q1370)
keep data year inc edu gender vote weight q*

save "$data\data62.dta", replace

/*------------------------------------------------------------------------------
 63. EenVandaag Survey Panel, Wave 12-13
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1213
gen data=63
gen edu=edunew
gen inc=incnew
recode votenow (1/11 16/18=1) (12 13=0) (14 15 19=.), gen(vote)
recode v1213_12 (2=0) (3=.), gen(q1399)
keep data year inc edu gender vote weight q*

save "$data\data63.dta", replace

/*------------------------------------------------------------------------------
 64. EenVandaag Survey Panel, Wave 12-14
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1214
gen data=64
gen edu=edunew
gen inc=incnew
recode votenow (1/11 14/16=1) (12 13=0) (17=.), gen(vote)
recode v1214d18 v1214_19 v1214_20 v1214_21 (2=0) (3=.),						///
	gen(q1409 q1410 q1413 q1414)
keep data year inc edu gender vote weight q*

save "$data\data64.dta", replace

/*------------------------------------------------------------------------------
 65. EenVandaag Survey Panel, Wave 12-15
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1215
gen data=65
gen edu=edunew
gen inc=incnew
recode votenow (1/11 14/16=1) (12 13=0) (17=.), gen(vote)
recode v1215d_1 v1215d_3 v1215d21 v1215d_4 v1215d2 v1215d4 v1215d3 v1215d_6	///
	(2=0) (3=.), gen(q1415 q1417 q1419 q1420 q1422 q1423 q1424 q1425)
recode v1215d_5 (1=0) (2=1) (3=1), gen(q1421)
keep data year inc edu gender vote weight q*

save "$data\data65.dta", replace

/*------------------------------------------------------------------------------
 66. EenVandaag Survey Panel, Wave 12-16
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1216
gen data=66
gen edu=edunew
gen inc=incnew
recode votenow (1/13 17=1) (14 16=0) (15=.), gen(vote)
recode v1216d_9 (1=0) (2=1) (3=.), gen(q1441)
keep data year inc edu gender vote weight q*

save "$data\data66.dta", replace

/*------------------------------------------------------------------------------
 67. EenVandaag Survey Panel, Wave 12-21
------------------------------------------------------------------------------*/

use "$data\EenVandaag.dta", clear

keep if wave==1221
gen data=67
gen edu=edunew
gen inc=incnew
recode votenow (1/13 19=1) (14 16=0) (15 17 18=.), gen(vote)
recode v1221d16 (1=0) (2=1) (3=.), gen(q1498)
keep data year inc edu gender vote weight q*

save "$data\data67.dta", replace

/*------------------------------------------------------------------------------
 68. Eurobarometer 21
------------------------------------------------------------------------------*/

use "$data\Eurobarometer 21.dta", clear

keep if isocntry=="NL"
gen data=68
gen year=1984
gen inc=v245
gen edu=v233 if v233<10
gen gender=v239
recode v235 (10/90=1) (95 .a=0), gen(vote)
gen weight=v6
recode v129 (1 2=0) (3/5=1), gen(q124)
keep data-q124

save "$data\data68.dta", replace

/*------------------------------------------------------------------------------
 69. Eurobarometer 36
------------------------------------------------------------------------------*/

use "$data\Eurobarometer 36.dta", clear

keep if isocntry=="NL"
gen data=69
gen year=1991
gen inc=v413
gen edu=v406 if v406<10
gen gender=v407
recode v397 (17/90=1) (95 96=0) (else=.), gen(vote)
replace vote=1 if v398>=17 & v398<=84
replace vote=0 if v398==95 | v398==96
gen weight=v10
recode v184 (2=1) (3 4=0), gen(q187)
keep data-q187

save "$data\data69.dta", replace

/*------------------------------------------------------------------------------
 70. Eurobarometer 39.0
------------------------------------------------------------------------------*/

use "$data\Eurobarometer 39.0.dta", clear

keep if isocntry=="NL"
gen data=70
gen year=1993
gen inc=v729
recode v683 (8/15=1) (16=2) (17=3) (18=4) (19 20=5) (21 22=6) (23/max=7),	///
	gen(edu)
gen gender=v686
recode v675 (17/90=1) (95 96=0) (else=.), gen(vote)
gen weight=v9
recode v637 (2=0), gen(q220)
keep data-q220

save "$data\data70.dta", replace

/*------------------------------------------------------------------------------
 71. Eurobarometer 44.3
------------------------------------------------------------------------------*/

use "$data\Eurobarometer 44.3.dta", clear

keep if isocntry=="NL"
gen data=71
gen year=1996
gen inc=v210
recode v191 (0=.) (11/15=1) (16=2) (17=3) (18=4) (19 20=5) (21 22=6)		///
	(23/max=7), gen(edu)
gen gender=v193
recode v188 (14/90=1) (95 96=0) (else=.), gen(vote)
gen weight=v10
recode v78 (2 3=0), gen(q472)
keep data-q472

save "$data\data71.dta", replace

/*------------------------------------------------------------------------------
 72. Eurobarometer 46.0
------------------------------------------------------------------------------*/

use "$data\Eurobarometer 46.0.dta", clear

keep if isocntry=="NL"
gen data=72
gen year=1996
gen inc=v646
gen edu=v620 if v620<10
gen gender=v621
recode v617 (14/90=1) (95 96=0) (else=.), gen(vote)
gen weight=v10
recode v363 (2=1) (3 4=0), gen(q473)
keep data-q473

save "$data\data72.dta", replace

/*------------------------------------------------------------------------------
 73. European Election Studies 2004
------------------------------------------------------------------------------*/

use "$data\European Election Studies 2004.dta", clear

keep if country==19
gen data=73
gen year=2004
gen inc=v230 if v230<9
recode v216 (0=.) (4/16=1) (17=2) (18=3) (19=4) (20=5) (21=6) (22=7) (23=8)	///
	(24=9) (25/50=10) (52/max=.), gen(edu)
gen gender=v217
recode v114 (1/90=1) (96 97=0) (99=.), gen(vote)
gen weight=psweight
recode v152 (2=1) (3 4=0) (9=.), gen(q613)
keep data-q613

save "$data\data73.dta", replace

/*------------------------------------------------------------------------------
 74. European Values Study 2008
------------------------------------------------------------------------------*/

use "$data\European Values Study 2008.dta", clear

keep if country==5280
gen data=74

* The bottom income categories are very sparse, so I group them together
recode v353YR (1/3=1) (4=2) (5=3) (6=4) (7=5) (8=6) (9=7) (10=8) (11=9)		///
	(12=10), gen(inc)
recode v336_2 (0=1) (10=2) (21=3) (22=4) (23=5) (31=6) (32=7) (33=8) (42=9)	///
	(51=10) (52=11) (60=12), gen(edu)
gen gender=v302
recode v263 (2=0) (.a=.), gen(vote)

* The weight has two cases with a value of zero, which I code to missing
recode weight (0=.)
recode v154 (2=1) (4 5=0) (3=.), gen(q645)
keep weight year data-q645

save "$data\data74.dta", replace

/*------------------------------------------------------------------------------
 75. Family Survey Dutch Population, 2000
------------------------------------------------------------------------------*/

use "$data\Familie-enquete Nederlandse bevolking 2000.dta", clear

gen data=75
gen year=2000
egen inc=cut(rhhinci), group(20)
replace inc=inc + 1

* The top education category is very sparse, so I group it with the adjacent one
recode reduclev (10=9), gen(edu)
gen gender=rsex
recode rsc02 (1/12=1) (98=0) (97=.), gen(vote)
gen weight=weegres
recode rsc05_08 (1 2=0) (4 5=1) (3=.), gen(q549)
keep data-q549

save "$data\data75.dta", replace

/*------------------------------------------------------------------------------
 76. Family Survey Dutch Population, 2003
------------------------------------------------------------------------------*/

use "$data\Familie-enquete Nederlandse bevolking 2003.dta", clear

gen data=76
gen year=2003
egen inc=cut(rhhinci), group(20)
replace inc=inc + 1

* The bottom and top education categories are very sparse, so I group them with
* the adjacent ones
recode reduclev (0=1) (10=9), gen(edu)
gen gender=rsex
recode pvk1 (1/11=1) (98=0) (97 99=.), gen(vote)
gen weight=riwfac
recode rvg1i (1 2=0) (4 5=1) (3 9=.), gen(q609)
keep data-q609

save "$data\data76.dta", replace

/*------------------------------------------------------------------------------
 77. Income Inequality, Income Politics and Redistribution Preferences
------------------------------------------------------------------------------*/

use "$data\Inkomensongelijkheid, inkomenspolitiek en nivelleringsgeneigdheid.dta", clear

gen data=77
gen year=1982
egen inc=cut(v380), group(20)
gen edu=v011 if v011<9
gen gender=v006
recode v322 (1/13 20=1) (14=0) (0=.), gen(vote)
gen weight=1
recode v146 v147 (2=1) (4 5=0) (0 3=.), gen(q57 q59)
keep data-q59

save "$data\data77.dta", replace

/*------------------------------------------------------------------------------
 78. International Social Survey Programme 2006
------------------------------------------------------------------------------*/

use "$data\ISSP 2006.dta", clear

keep if V3==528
gen data=78
gen year=2006
egen inc=cut(NL_INC), group(20)
recode inc (0=1) (1=2) (7=6) (8=7) (9=8) (11=9) (13=10) (14=11) (15=12)		///
	(16=13) (17=14) (18=15) (19=16)
gen edu=NL_DEGR
gen gender=sex
recode NL_PRTY (1/95=1) (96=0), gen(vote)
recode V16 (2=1) (4 5=0) (3=.), gen(q617)
recode V17 V19 V20 V18 V22 (2=1) (3/5=0), gen(q618 q623 q625 q627 q628)
recode V21 V24 V23 (4 5=1) (1/3=0), gen(q619 q624 q626)
keep weight-q626

save "$data\data78.dta", replace

/*------------------------------------------------------------------------------
 79. Individual Freedom of Choice in the Field of Social Insurance
------------------------------------------------------------------------------*/

use "$data\Keuzevrijheid in de sociale verzekering.dta", clear

gen data=79
gen year=2001
egen inc=cut(nettohh), group(20)
replace inc=inc + 1
recode opleid (2=1) (3=2) (4=3) (5=4) (6=5) (7=6) (1 9=.), gen(edu)
gen gender=geslacht
recode mei (1/9=1) (11=0) (10 12/14=.), gen(vote)
gen weight=1
recode v2201 v2206 v2202 v2203 v2204 v2205 (1 2=0) (3=1) (4=.),				///
	gen(q556 q559 q560 q561 q562 q563)
keep data-q563

save "$data\data79.dta", replace

/*------------------------------------------------------------------------------
 80. LISS Panel, 2008
------------------------------------------------------------------------------*/

use "$data\LISS.dta", clear

gen data=80
gen year=2008
egen inc=cut(nettohh_f), group(20)
replace inc=inc + 1
gen edu=oplcat
gen gender=geslacht
recode ap08a165 (1 15=0) (3/14=1) (2 16 17=.), gen(vote)
gen weight=1

* I code people who are opposed to selling alcohol or cannabis in general as
* being in favor of raising the minimum legal age
recode ap08a019 (8/16=0) (0 17/35=1) (90/max=.), gen(q646)
recode ap08a020 (13/18=0) (0 19/85=1) (90/max=.), gen(q647)
recode ap08a037 ap08a038 ap08a039 ap08a040 ap08a041 ap08a047 ap08a049		///
	ap08a050 ap08a057 ap08a061 ap08a062 (1 2=0) (4 5=1) (3=.),				///
	gen(q648 q649 q650 q651 q652 q655 q657 q658 q660 q662 q663)
recode ap08a090 (1/3=1) (5/7=0) (4=.), gen(q665)
keep data-q665

save "$data\data80.dta", replace

/*------------------------------------------------------------------------------
 81. LISS Panel, 2010
------------------------------------------------------------------------------*/

use "$data\LISS.dta", clear

gen data=81
gen year=2010
egen inc=cut(nettohh_f), group(20)
replace inc=inc + 1
gen edu=oplcat
gen gender=geslacht
recode cv10c058 (1 15=0) (3/14=1) (2 998 999=.), gen(vote)
gen weight=1
recode bu10a027 (1 2=0) (3 4=1) (98/max=.), gen(q706)
keep data-q706

save "$data\data81.dta", replace

/*------------------------------------------------------------------------------
 82. LISS Panel, 2012
------------------------------------------------------------------------------*/

use "$data\LISS.dta", clear

gen data=82
gen year=2012
egen inc=cut(nettohh_f), group(20)
replace inc=inc + 1
gen edu=oplcat
gen gender=geslacht
recode fz12a085 (1 14=0) (3/13=1) (2 15 16=.), gen(vote)
gen weight=1
recode hg12a044 (1 2=0) (4 5=1) (3 6=.), gen(q762)
keep data-q762

save "$data\data82.dta", replace

/*------------------------------------------------------------------------------
 83. NIPO Weekly Surveys, 1982 (week 15)
------------------------------------------------------------------------------*/

use "$data\NIPO8215.dta", clear

gen data=83
gen year=1982
recode var11 var10 (98/max=.), gen(inc edu)
gen gender=var02
gen vote=runiformint(0,1)
gen weight=var42
recode var18 (1=1) (2=0) (12=.), gen(q67)
keep data-q67

save "$data\data83.dta", replace

/*------------------------------------------------------------------------------
 84. NIPO Weekly Surveys, 1982 (week 36)
------------------------------------------------------------------------------*/

use "$data\NIPO8236.dta", clear

gen data=84
gen year=1982
gen inc=var11 if var11<98
gen edu=var10 if var10<10
gen gender=var02
gen vote=runiformint(0,1)
gen weight=var42
recode var30 var31 var32 (2=0) (12=.), gen(q72 q73 q75)
keep data-q75

save "$data\data84.dta", replace

/*------------------------------------------------------------------------------
 85. NIPO Weekly Surveys, 1983 (week 6)
------------------------------------------------------------------------------*/

use "$data\NIPO8306.dta", clear

gen data=85
gen year=1983
gen inc=v09 if v09<98
gen edu=v08a if v08a<10
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v54
recode v26 (2=0) (12=.), gen(q118)
keep data-q118

save "$data\data85.dta", replace

/*------------------------------------------------------------------------------
 86. NIPO Weekly Surveys, 1983 (week 18)
------------------------------------------------------------------------------*/

use "$data\NIPO8318.dta", clear

gen data=86
gen year=1983
gen inc=v09 if v09<98
gen edu=v08b if v08b<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v54
recode v22 (2 3=0) (12=.), gen(q110)
keep data-q110

save "$data\data86.dta", replace

/*------------------------------------------------------------------------------
 87. NIPO Weekly Surveys, 1983 (week 36)
------------------------------------------------------------------------------*/

use "$data\NIPO8336.dta", clear

gen data=87
gen year=1983
gen inc=v09 if v09<98
gen edu=v08b if v08b<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v54
recode v28 (1 2=0) (3/7=1) (12=.), gen(q113)
keep data-q113

save "$data\data87.dta", replace

/*------------------------------------------------------------------------------
 88. NIPO Weekly Surveys, 1984 (week 9)
------------------------------------------------------------------------------*/

use "$data\NIPO8409.dta", clear

gen data=88
gen year=1984
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v42
recode v18 (1=0) (2=1) (12=.), gen(q133)
keep data-q133

save "$data\data88.dta", replace

/*------------------------------------------------------------------------------
 89. NIPO Weekly Surveys, 1984 (week 11)
------------------------------------------------------------------------------*/

use "$data\NIPO8411.dta", clear

gen data=89
gen year=1984
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v42
recode v15 (2=0) (3 12=.), gen(q125)
keep data-q125

save "$data\data89.dta", replace

/*------------------------------------------------------------------------------
 90. NIPO Weekly Surveys, 1984 (week 41)
------------------------------------------------------------------------------*/

use "$data\NIPO8441.dta", clear

gen data=90
gen year=1984
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v19 (2=0) (3 12=.), gen(q128)
keep data-q128

save "$data\data90.dta", replace

/*------------------------------------------------------------------------------
 91. NIPO Weekly Surveys, 1985 (week 1)
------------------------------------------------------------------------------*/

use "$data\NIPO8501.dta", clear

gen data=91
gen year=1985
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v133 (2=0) (12=.), gen(q135)
keep data-q135

save "$data\data91.dta", replace

/*------------------------------------------------------------------------------
 92. NIPO Weekly Surveys, 1985 (week 27)
------------------------------------------------------------------------------*/

use "$data\NIPO8527.dta", clear

gen data=92
gen year=1985
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v38 (2=0) (12=.), gen(q137)
keep data-q137

save "$data\data92.dta", replace

/*------------------------------------------------------------------------------
 93. NIPO Weekly Surveys, 1986 (week 19)
------------------------------------------------------------------------------*/

use "$data\NIPO8619.dta", clear

gen data=93
gen year=1986
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v161 (3=0) (2 12=.), gen(q139)
keep data-q139

save "$data\data93.dta", replace

/*------------------------------------------------------------------------------
 94. NIPO Weekly Surveys, 1986 (week 25)
------------------------------------------------------------------------------*/

use "$data\NIPO8625.dta", clear

gen data=94
gen year=1986
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v129 (2=1) (1 3=0) (12=.), gen(q140)
keep data-q140

save "$data\data94.dta", replace

/*------------------------------------------------------------------------------
 95. NIPO Weekly Surveys, 1986 (week 30)
------------------------------------------------------------------------------*/

use "$data\NIPO8630.dta", clear

gen data=95
gen year=1986
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v136 (2=0) (12=.), gen(q141)
keep data-q141

save "$data\data95.dta", replace

/*------------------------------------------------------------------------------
 96. NIPO Weekly Surveys, 1986 (week 43)
------------------------------------------------------------------------------*/

use "$data\NIPO8643.dta", clear

gen data=96
gen year=1986
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v135 (1/3=0) (4/7=1) (12 98=.), gen(q144)

* I code people who are against any speed limit as being in favor of raising it
replace q144=1 if v134==2
keep data-q144

save "$data\data96.dta", replace

/*------------------------------------------------------------------------------
 97. NIPO Weekly Surveys, 1987 (week 13)
------------------------------------------------------------------------------*/

use "$data\NIPO8713.dta", clear

gen data=97
gen year=1987
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v141 (3=0) (2 12=.), gen(q147)
keep data-q147

save "$data\data97.dta", replace

/*------------------------------------------------------------------------------
 98. NIPO Weekly Surveys, 1988 (week 27)
------------------------------------------------------------------------------*/

use "$data\NIPO8827.dta", clear

gen data=98
gen year=1988
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78

* The middle category is hard to code one way or the other, so I leave it out
recode v141 (3=0) (2 12=.), gen(q162)
keep data-q162

save "$data\data98.dta", replace

/*------------------------------------------------------------------------------
 99. NIPO Weekly Surveys, 1988 (week 33)
------------------------------------------------------------------------------*/

use "$data\NIPO8833.dta", clear

gen data=99
gen year=1988
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v129 (1=0) (2=1) (12=.), gen(q163)
keep data-q163

save "$data\data99.dta", replace

/*------------------------------------------------------------------------------
 100. NIPO Weekly Surveys, 1988 (week 50)
------------------------------------------------------------------------------*/

use "$data\NIPO8850.dta", clear

gen data=100
gen year=1988
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v132 (2=0) (12/max=.), gen(q164)
keep data-q164

save "$data\data100.dta", replace

/*------------------------------------------------------------------------------
 101. NIPO Weekly Surveys, 1990 (week 32)
------------------------------------------------------------------------------*/

use "$data\NIPO9032.dta", clear

gen data=101
gen year=1990
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v135 (2=0) (12=.), gen(q173)
keep data-q173

save "$data\data101.dta", replace

/*------------------------------------------------------------------------------
 102. NIPO Weekly Surveys, 1990 (week 34)
------------------------------------------------------------------------------*/

use "$data\NIPO9034.dta", clear

gen data=102
gen year=1990
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v132 (2=0) (12=.), gen(q176)
keep data-q176

save "$data\data102.dta", replace

/*------------------------------------------------------------------------------
 103. NIPO Weekly Surveys, 1991 (week 14)
------------------------------------------------------------------------------*/

use "$data\NIPO9114.dta", clear

gen data=103
gen year=1991
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v167 (2=0) (3 12=.), gen(q190)
keep data-q190

save "$data\data103.dta", replace

/*------------------------------------------------------------------------------
 104. NIPO Weekly Surveys, 1991 (week 43)
------------------------------------------------------------------------------*/

use "$data\NIPO9143.dta", clear

gen data=104
gen year=1991
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v129 (1 2=1) (4 5=0) (3 6 8=.), gen(q194)
keep data-q194

save "$data\data104.dta", replace

/*------------------------------------------------------------------------------
 105. NIPO Weekly Surveys, 1992 (week 11)
------------------------------------------------------------------------------*/

use "$data\NIPO9211.dta", clear

gen data=105
gen year=1992
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v129 (2=1) (1=0) (8=.), gen(q212)
keep data-q212

save "$data\data105.dta", replace

/*------------------------------------------------------------------------------
 106. NIPO Weekly Surveys, 1982 (week 26)
------------------------------------------------------------------------------*/

use "$data\NIPO9226.dta", clear

gen data=106
gen year=1992
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v128 (1=1) (2=0) (3 8=.), gen(q214)
keep data-q214

save "$data\data106.dta", replace

/*------------------------------------------------------------------------------
 107. NIPO Weekly Surveys, 1993 (week 35)
------------------------------------------------------------------------------*/

use "$data\NIPO9335.dta", clear

gen data=107
gen year=1993
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
gen vote=runiformint(0,1)
gen weight=v78
recode v126 (2=0) (8=.), gen(q228)
keep data-q228

save "$data\data107.dta", replace

/*------------------------------------------------------------------------------
 108. NIPO Weekly Surveys, 1994 (week 10)
------------------------------------------------------------------------------*/

use "$data\NIPO9410.dta", clear

gen data=108
gen year=1994
gen inc=v10 if v10<98
gen edu=v06 if v06<7
gen gender=v01
recode v05 (1/12=1) (98=0) (0 97 99=.), gen(vote)
gen weight=v78
recode v152 v154 (1=1) (2=0) (8=.), gen(q234 q237)
keep data-q237

save "$data\data108.dta", replace

/*------------------------------------------------------------------------------
 109. Dutch Parliamentary Election Studies, 1981
------------------------------------------------------------------------------*/

use "$data\NKO 1981.dta", clear

gen data=109
gen year=1981
recode var179 var167 (96/max=.), gen(inc edu)
gen gender=var127
recode var016 (2=0) (3 6=.), gen(vote)
gen weight=1
recode var360 (1=0) (2=1) (6/max=.), gen(q53)
recode var390 (1 2=1) (4 5=0) (3 6/max=.), gen(q54)
keep data-q54

save "$data\data109.dta", replace

/*------------------------------------------------------------------------------
 110. Dutch Parliamentary Election Studies, 1989
------------------------------------------------------------------------------*/

use "$data\NKO 1989.dta", clear

gen data=110
gen year=1989
gen inc=var123 if var123<97
gen edu=var094
gen gender=var093
recode var055 (2=0) (3 7=.), gen(vote)
gen weight=var290
recode var047 (1=0) (2=1) (7/max=.), gen(q166)
recode var063 (1 2=1) (3 4=0) (7/max=.), gen(q168)
recode var174 (1 2=1) (4 5=0) (3 7/max=.), gen(q170)
keep data-q170

save "$data\data110.dta", replace

/*------------------------------------------------------------------------------
 111. Dutch Parliamentary Election Studies, 1994
------------------------------------------------------------------------------*/

use "$data\NKO 1994.dta", clear

gen data=111
gen year=1994
gen inc=var179 if var179<97
gen edu=var174 if var174<7
gen gender=var176
recode var055 (2=0) (3 7=.), gen(vote)

* The weight has a number of missing values, which I replace with 1
recode var523 (9=1), gen(weight)
recode var076 (1/3=1) (5/7=0) (4 97/max=.), gen(q238)
keep data-q238

save "$data\data111.dta", replace

/*------------------------------------------------------------------------------
 112. Dutch Parliamentary Election Studies, 2002/2003
------------------------------------------------------------------------------*/

use "$data\NKO 2002.dta", clear

gen data=112
gen year=2003	// The question we use comes from 2003 part of survey (not 2002)

* Income and education are both measured in two variables, which I merge.
* The 21st income category is empty, so I shift the remaining groups one over.
recode x0545 v0557 (22=21) (23=22) (24=23) (25 26=.), gen(inc inc0)
replace inc=inc0 if inc==.
recode x0502 v0463 (12/max=.), gen(edu edu0)
replace edu=edu0 if edu==.
gen gender=x0498
recode x0195 (2=0) (3=.), gen(vote)
replace vote=1 if v0646==1
replace vote=0 if v0646==2
gen weight=sdemm03
replace weight=sdemm02 if weight==.
recode x0322 (1 2=1) (3 4=0) (5/max=.), gen(q591)
keep data year inc edu gender-q591

save "$data\data112.dta", replace

/*------------------------------------------------------------------------------
 113. Dutch Parliamentary Election Studies, 2006
------------------------------------------------------------------------------*/

use "$data\NKO 2006.dta", clear

gen data=113
gen year=2006
recode V414 V430 (99/max=.), gen(inc edu)
gen gender=V420
recode V220 (2=0) (3 997=.), gen(vote)
gen weight=wgt2
recode V175 (1/3=1) (5/7=0) (4 997=.), gen(q629)
recode V205 V207 V211 V200 V201 V209 (1 2=1) (3 4=0) (99/max=.),			///
	gen(q630 q631 q634 q635 q636 q640)
keep data-q640

save "$data\data113.dta", replace

/*------------------------------------------------------------------------------
 114. Dutch Parliamentary Election Studies, 2010
------------------------------------------------------------------------------*/

use "$data\NKO 2010.dta", clear

gen data=114
gen year=2010
recode v451 v410 (99/max=.), gen(inc edu)
gen gender=v010
gen vote=v240 if v240<2
gen weight=wgt2
recode v852 v959 (1 2=1) (4 5=0) (3 99/max=.), gen(q725 q728)
recode v996 (994 997=.), gen(q726)
keep data-q726

save "$data\data114.dta", replace

/*------------------------------------------------------------------------------
 115. Dutch Parliamentary Election Studies, 2012
------------------------------------------------------------------------------*/

use "$data\NKO 2012.dta", clear

gen data=115
gen year=2012
recode V359 V344 (99/max=.), gen(inc edu)
recode V341 (995=.), gen(gender)
recode V210 (2=0), gen(vote)
gen weight=Wgt1c
recode V142 V138 V135 V140 (1 2=1) (3 4=0) (99/max=.), gen(q763 q766 q767 q771)
keep data-q771

save "$data\data115.dta", replace

/*------------------------------------------------------------------------------
 116. Public Opinion on Social Security and Labor in the Netherlands
------------------------------------------------------------------------------*/

* Note: the title of the dataset on the website includes the year 1996, but the
* survey was conducted in late 1995.
use "$data\Publieke opinie over sociale zekerheid en arbeid in Nederland.dta", clear

gen data=116
gen year=1995
gen inc=x460
gen edu=x467 if x467<8
gen gender=x454
recode x700 (1/13=1) (15=0) (14 16 17=.), gen(vote)
gen weight=x440
replace weight=x441 if weight==.
replace weight=x442 if weight==.
recode x195 x199 x200 x201 x202 x204 (1 2=1) (4 5=0) (3 6=.),				///
	gen(q289 q292 q293 q294 q295 q296)
recode x89 x90 x91 x92 x93 (1 2=0) (4 5=1) (3 6=.), gen(q299 q300 q301		///
	q302 q303)
recode x354 x356 (1=0) (2 3=1), gen(q305 q383)
recode x358 (1/4=1) (5=0), gen(q306)
recode x326 x327 x329 x330 x331 x333 (1 2=1) (4 5=0) (3 6=.), gen(q375		///
	q376 q377 q378 q379 q380)
recode x353 (1=0) (2=1) (3=.), gen(q382)
keep data-q382

save "$data\data116.dta", replace

/*------------------------------------------------------------------------------
 117. Justice Criteria and Income Inequality
------------------------------------------------------------------------------*/

use "$data\Rechtvaardigheidscriteria en inkomensongelijkheid.dta", clear

gen data=117
gen year=1987
egen inc=cut(gezinabs), group(20)
replace inc=inc + 1
recode v007 (0 9=.), gen(edu)
recode v002 (0=.), gen(gender)
gen vote=runiformint(0,1)
gen weight=1
recode v021 v026 (0=.) (1=1) (2 3=0), gen(q150 q154)
replace q150=0 if v020==2 & q150==.
replace q154=0 if v025==2 & q154==.
recode v023 (0=.) (1=1) (2=0), gen(q151)
recode v029 (0=.) (1 2=1) (3 4=0), gen(q156)
keep data-q156

save "$data\data117.dta", replace

/*------------------------------------------------------------------------------
 118. Sociocultural Developments in the Netherlands
------------------------------------------------------------------------------*/

use "$data\Sociaal-culturele ontwikkelingen in Nederland.dta", clear

gen data=118
gen year=1995
recode v1687 (0 99=.), gen(inc)
gen edu=v0100
gen gender=v0013
recode v0080 (1/13=1) (16=0) (14 15=.), gen(vote)
gen weight=1
recode v2462 (1 2=1) (4 5=0) (0 3 9=.), gen(q422)
keep data-q422

save "$data\data118.dta", replace

/*------------------------------------------------------------------------------
 119. Socioeconomic Developments in the Netherlands
------------------------------------------------------------------------------*/

use "$data\Sociaal-economische ontwikkelingen in Nederland.dta", clear

gen data=119
gen year=1998
recode e28 (-99=.), gen(inc0)
egen inc=cut(inc0), group(20)
recode inc (0=1) (1=2) (2=3) (3=4) (4=5) (5=6) (7=7) (8=8) (10=9) (11=10)	///
	(12=11) (13=12) (14=13) (15=14) (16=15) (17=16) (18=17) (19=18)
recode a9_1 (-99=.), gen(edu)
recode a1 (-99=.), gen(gender)
recode f5_1 (1/11=1) (17 18=0) (-99=.), gen(vote)
recode b11_a (1 2=0) (4 5=1) (-99 3=.), gen(q492)
recode b11_b (0/1450=0) (1500/max=1) (-99=.), gen(q493)
replace q493=0 if b11_a>3 & q493==.
keep data year weight inc-q493

save "$data\data119.dta", replace

/*------------------------------------------------------------------------------
 120. Predicting Preferences
------------------------------------------------------------------------------*/

/* The loop below is meant to calculate income variables using the midpoints in
the same way as Martin Gilens (see pp. 61-62 of his Affluence and Influence).
First, we calculate the total number of observations, the number of observations
in each income category and the cumulative number of observations for each
category. Then we generate the relative midpoints by taking the cumulative
number of observations for each category, adding half of the actual number of
observations in that category and dividing by the total. For instance, if there
are 1000 respondents in total, of which 400 are in income category 7 and lower,
and there are 100 respondents in income category 8, the respondents in income
category 8 get the following score: (400 + (100/2)) / 1000 = 0.45. We do the
same for education groups. This calculation is performed separately per dataset.

The final part (from "foreach q of varlist `dv'" onwards) is where the
preferences by income groups are predicted. For income, the interaction between
income and education, and gender, we predict the share of respondents that is in
favor of policy change at different points in the distribution. The results are
stored in new variables. The reason we reduced the total number of income
categories to 20 whenever there were more than that in the original variable is
that this loop would take a really long time otherwise, without much gain in
precision.

Lastly, the data is reshaped so that the same set of variables covers all
questions, after which all the datasets are combined. */

quietly forval a=1/119 {
	use "$data\data`a'.dta", clear

	foreach v of varlist inc edu {
		egen `v'tot=count(`v')
		gen `v'm=.
		sum `v'

		forval b=1/`r(max)' {
			egen `v'n`b'=count(`v') if `v'==`b'
			sum `v'n`b'
			replace `v'n`b'=`r(mean)'
			egen `v'c`b'=rowtotal(`v'n*)
			}

		rename `v'c# `v'c#, renumber(2)
		gen `v'c1=0
		sum `v'

		forval c=1/`r(max)' {
			gen `v'm`c'=(`v'c`c' + (`v'n`c'/2))/`v'tot
			replace `v'm=`v'm`c' if `v'==`c'
			}
		}

	ds q*
	local dv=r(varlist)

	foreach q of varlist `dv' {
		logit `q' c.incm##c.incm [pw=weight]
		margins
		matrix a=r(b)
		gen iall`q'=a[1,1]
		margins, at(incm=(.05 .10 .20 .30 .50 .70 .80 .90 .95))
		matrix b=r(b)
		gen i05`q'=b[1,1]
		gen i10`q'=b[1,2]
		gen i20`q'=b[1,3]
		gen i30`q'=b[1,4]
		gen i50`q'=b[1,5]
		gen i70`q'=b[1,6]
		gen i80`q'=b[1,7]
		gen i90`q'=b[1,8]
		gen i95`q'=b[1,9]

		logit `q' c.incm##c.edum [pw=weight]
		margins, at(incm=(.1(.4).9) edum=(.1(.4).9))
		matrix b=r(b)
		gen i10e10`q'=b[1,1]
		gen i10e50`q'=b[1,2]
		gen i10e90`q'=b[1,3]
		gen i50e10`q'=b[1,4]
		gen i50e50`q'=b[1,5]
		gen i50e90`q'=b[1,6]
		gen i90e10`q'=b[1,7]
		gen i90e50`q'=b[1,8]
		gen i90e90`q'=b[1,9]

		logit `q' gender [pw=weight]
		margins, at(gender=(1 2))
		matrix b=r(b)
		gen men`q'=b[1,1]
		gen women`q'=b[1,2]

		logit `q' vote [pw=weight]
		margins, at(vote=(0 1))
		matrix a=r(b)
		gen iallnv`q'=a[1,1]
		gen iallv`q'=a[1,2]

		logit `q' c.incm##i.vote [pw=weight]
		margins, at(incm=(.1(.4).9) vote=(0 1))
		matrix b=r(b)
		gen i10nv`q'=b[1,1]
		gen i10v`q'=b[1,2]
		gen i50nv`q'=b[1,3]
		gen i50v`q'=b[1,4]
		gen i90nv`q'=b[1,5]
		gen i90v`q'=b[1,6]
		}

	keep data year iall* i05* i10* i20* i30* i50* i70* i80* i90* i95* women* men*
	keep in 1

	reshape long iallq i05q i10q i20q i30q i50q i70q i80q i90q i95q	i10e10q	///
	i10e50q i10e90q i50e10q i50e50q i50e90q i90e10q i90e50q i90e90q menq	///
	womenq iallnvq iallvq i10nvq i10vq i50nvq i50vq i90nvq i90vq, i(data) j(id)

	rename *q* **
	
	tempfile small`a'
	save "`small`a''", replace
	}

clear

forval a=1/119 {
	append using "`small`a''"
	}

foreach var of varlist iall-i90v {
	replace `var'=`var'*100
	}

* In datasets where the voting variable was missing, I generated a random dummy
* with the same name to prevent error messages in the loop. I drop the predicted
* probabilities that were based on these random dummies here.
recode *v (min/max=.) if data<14 | (data>=83 & data<=107) | data==117
	 
* The data variable is recoded into larger groups for survey organizations.
recode data (36/67=1) (17/35=2) (83/108=3) (1/13=4) (116=5) (109/115=6)		///
	(80/82=7) (14/16=8) (68/74 78=9) (else=10), gen(survey)

* Policy change
recode id (75 128 135 140 144 154 162 164 170 176 190 214 229 256 292 302	///
	431 434 472 473 475 493 526 562 618 619 625 627 628 635 645 648 655 658	///
	678 682 683 685 687 750 762 763 767 771 781 786 800 816 830 833 867 874	///
	877 878 924 942 951 1062 1073 1094 1195 1254 1276 1278 1304 1306 1315	///
	1326 1328 1338 1361 1362 1364 1365 1409 1420 1441 1498 1499=1) (168 261	///
	264 613 766 1044 1072 1113 1171 1194 1260 1330 1342 1417=.) (else=0),	///
	gen(pass)

* Questions about government spending
recode id (124 160 422 472 473 618 619 623 624 625 626 627 628 636 675 678	///
	682 683 685 687 767 774 781 782 786 800 830 831 874 875 876 877 878 919	///
	921 922 924 1274 1275 1304 1315 1328=1) (else=0), gen(spending)

* Questions where policy change was not coded
recode id (168 264 766 1044 1072 1113 1171 1194 1260 1342=1) (261 613 1330	///
	1417=2) (else=.), gen(nocode)

* Macro-level control variables (see the online appendices for sources)
recode year (1979=4.72) (1980=4.84) (1981=6.27) (1982=8.75) (1983=10.72)	///
	(1984=10.51) (1985=9.6) (1986=8.64) (1987=8.46) (1988=8.35) (1989=7.62)	///
	(1990=6.91) (1991=6.46) (1992=6.53) (1993=7.51) (1994=8.46) (1995=8.08)	///
	(1996=7.49) (1997=6.56) (1998=5.10) (1999=4.26) (2000=3.76) (2001=3.46)	///
	(2002=4.13) (2003=5.38) (2004=6.42) (2005=6.47) (2006=5.46) (2007=4.49)	///
	(2008=3.85) (2009=4.80) (2010=5.45) (2011=5.36) (2012=6.42), gen(unempt)

recode year (1979=1.84) (1980=1.68) (1981=-0.51) (1982=-1.28) (1983=1.76)	///
	(1984=3.12) (1985=2.66) (1986=3.13) (1987=1.85) (1988=2.98) (1989=4.42)	///
	(1990=4.18) (1991=2.44) (1992=1.71) (1993=1.26) (1994=2.96) (1995=3.12)	///
	(1996=3.56) (1997=4.30) (1998=4.53) (1999=5.05) (2000=4.24) (2001=2.13)	///
	(2002=0.10) (2003=0.29) (2004=2.03) (2005=2.16) (2006=3.52) (2007=3.70)	///
	(2008=1.71) (2009=-3.77) (2010=1.4) (2011=1.66) (2012=-1.06), gen(growtht)

recode year (1979=.) (1980=25.7) (1981=29.9) (1982=36.1) (1983=42.3)		///
	(1984=46.9) (1985=51.0) (1986=51.6) (1987=53.9) (1988=56.5) (1989=57.0)	///
	(1990=58.4) (1991=59.1) (1992=60.2) (1993=60.6) (1994=57.5) (1995=58.9)	///
	(1996=57.7) (1997=53.9) (1998=52.0) (1999=49.2) (2000=44.1) (2001=41.3)	///
	(2002=41.5) (2003=43.0) (2004=43.8) (2005=43.0) (2006=39.2) (2007=37.6)	///
	(2008=50.1) (2009=49.7) (2010=51.8) (2011=51.5) (2012=55.3), gen(debtt)

recode year (1979=6.32) (1980=6.32) (1981=5.29) (1982=5.36) (1983=6.46)		///
	(1984=6.46) (1985=6.46) (1986=6.36) (1987=6.25) (1988=6.25) (1989=5.43)	///
	(1990=4.60) (1991=4.60) (1992=4.60) (1993=4.60) (1994=4.73) (1995=4.85)	///
	(1996=4.85) (1997=4.85) (1998=4.98) (1999=5.10) (2000=5.10) (2001=5.10)	///
	(2002=6.09) (2003=6.77) (2004=6.46) (2005=6.46) (2006=5.79) (2007=5.79)	///
	(2008=5.79) (2009=5.79) (2010=6.39) (2011=7.67) (2012=6.77), gen(lrgovt)

recode year (1979=7.06) (1980=8.22) (1981=9.17) (1982=9.64) (1983=9.59)		///
	(1984=9.11) (1985=8.53) (1986=8.00) (1987=7.56) (1988=7.17) (1989=7.01)	///
	(1990=7.17) (1991=7.41) (1992=7.61) (1993=7.62) (1994=7.14) (1995=6.30)	///
	(1996=5.43) (1997=4.63) (1998=4.14) (1999=4.20) (2000=4.63) (2001=5.17)	///
	(2002=5.57) (2003=5.64) (2004=5.34) (2005=5.01) (2006=4.81) (2007=4.79)	///
	(2008=5.18) (2009=6.06) (2010=6.76) (2011=7.25) (2012=7.49), gen(unempt4)

recode year (1979=0.70) (1980=0.95) (1981=1.15) (1982=1.88) (1983=2.50)		///
	(1984=2.75) (1985=3.01) (1986=3.31) (1987=3.17) (1988=3.15) (1989=2.80)	///
	(1990=2.51) (1991=2.30) (1992=2.52) (1993=3.04) (1994=3.69) (1995=4.11)	///
	(1996=4.34) (1997=4.05) (1998=3.21) (1999=2.36) (2000=1.76) (2001=1.34)	///
	(2002=1.62) (2003=2.34) (2004=2.62) (2005=1.46) (2006=1.31) (2007=0.94)	///
	(2008=-.01) (2009=-.39) (2010=0.65) (2011=0.82) (2012=0.93), gen(growtht4)

recode year (1979=33.5) (1980=36.2) (1981=41.2) (1982=45.6) (1983=49.1)		///
	(1984=52.0) (1985=54.0) (1986=55.5) (1987=57.0) (1988=58.2) (1989=59.1)	///
	(1990=59.2) (1991=59.3) (1992=59.0) (1993=57.7) (1994=56.0) (1995=54.3)	///
	(1996=51.4) (1997=48.1) (1998=45.6) (1999=43.8) (2000=42.7) (2001=42.5)	///
	(2002=42.1) (2003=41.3) (2004=42.7) (2005=43.9) (2006=45.7) (2007=48.1)	///
	(2008=51.7) (2009=53.0) (2010=54.3) (2011=54.8) (2012=55.0), gen(debtt4)

recode year (1979=5.95) (1980=5.98) (1981=6.01) (1982=6.22) (1983=6.40)		///
	(1984=6.36) (1985=6.15) (1986=5.78) (1987=5.43) (1988=5.10) (1989=4.77)	///
	(1990=4.63) (1991=4.68) (1992=4.73) (1993=4.78) (1994=4.85) (1995=4.93)	///
	(1996=4.98) (1997=5.03) (1998=5.27) (1999=5.63) (2000=5.90) (2001=6.18)	///
	(2002=6.31) (2003=6.25) (2004=6.06) (2005=5.92) (2006=5.91) (2007=6.29)	///
	(2008=6.48) (2009=6.50) (2010=6.51) (2011=6.40) (2012=6.04), gen(lrgovt4)

sort year data id

* The survey questions were given identifying numbers to match a much longer
* list of questions that could potentially be used. Since these numbers have no
* significance anymore at this stage, I replace them here.
replace id=_n

order id year data survey spending pass nocode, first
order iallv i10v i50v i90v iallnv i10nv i50nv i90nv, before(unempt)

label define datalab														///
	 1 "Centerdata Telepanel: Asylum Seekers"								///
	 2 "Centerdata Telepanel: Changes in the Dutch Broadcasting System"		///
	 3 "Centerdata Telepanel: Criminality in the Netherlands"				///
	 4 "Centerdata Telepanel: De Winkelsluitingswet"						///
	 5 "Centerdata Telepanel: Ethics: Abortion"								///
	 6 "Centerdata Telepanel: Genetische Manipulatie"						///
	 7 "Centerdata Telepanel: Membership of the Dutch Party SGP"			///
	 8 "Centerdata Telepanel: Political Reforms in the Netherlands"			///
	 9 "Centerdata Telepanel: Rekeningrijden"								///
	10 "Centerdata Telepanel: Smoking Habits"								///
	11 "Centerdata Telepanel: Smoking"										///
	12 "Centerdata Telepanel: Voluntary Work"								///
	13 "Centerdata Telepanel: Zinloos Geweld"								///
	14 "Continu Onderzoek Burgerperspectieven, 2008"						///
	15 "Continu Onderzoek Burgerperspectieven, 2011"						///
	16 "Continu Onderzoek Burgerperspectieven, 2012"						///
	17 "Culturele Changes in the Netherlands, 1979"							///
	18 "Culturele Changes in the Netherlands, 1980"							///
	19 "Culturele Changes in the Netherlands, 1981"							///
	20 "Culturele Changes in the Netherlands, 1983"							///
	21 "Culturele Changes in the Netherlands, 1985"							///
	22 "Culturele Changes in the Netherlands, 1986"							///
	23 "Culturele Changes in the Netherlands, 1987"							///
	24 "Culturele Changes in the Netherlands, 1991"							///
	25 "Culturele Changes in the Netherlands, 1992"							///
	26 "Culturele Changes in the Netherlands, 1993"							///
	27 "Culturele Changes in the Netherlands, 1994"							///
	28 "Culturele Changes in the Netherlands, 1995"							///
	29 "Culturele Changes in the Netherlands, 1996"							///
	30 "Culturele Changes in the Netherlands, 1998"							///
	31 "Culturele Changes in the Netherlands, 2000"							///
	32 "Culturele Changes in the Netherlands, 2002"							///
	33 "Culturele Changes in the Netherlands, 2008"							///
	34 "Culturele Changes in the Netherlands, 2010"							///
	35 "Culturele Changes in the Netherlands, 2012"							///
	36 "EenVandaag Survey Panel, Wave 07-12"								///
	37 "EenVandaag Survey Panel, Wave 07-13"								///
	38 "EenVandaag Survey Panel, Wave 07-15"								///
	39 "EenVandaag Survey Panel, Wave 08-01"								///
	40 "EenVandaag Survey Panel, Wave 08-05"								///
	41 "EenVandaag Survey Panel, Wave 08-11"								///
	42 "EenVandaag Survey Panel, Wave 08-14"								///
	43 "EenVandaag Survey Panel, Wave 09-01"								///
	44 "EenVandaag Survey Panel, Wave 09-02"								///
	45 "EenVandaag Survey Panel, Wave 09-03"								///
	46 "EenVandaag Survey Panel, Wave 09-04"								///
	47 "EenVandaag Survey Panel, Wave 09-08"								///
	48 "EenVandaag Survey Panel, Wave 09-10"								///
	49 "EenVandaag Survey Panel, Wave 10-07"								///
	50 "EenVandaag Survey Panel, Wave 10-08"								///
	51 "EenVandaag Survey Panel, Wave 10-11"								///
	52 "EenVandaag Survey Panel, Wave 10-12"								///
	53 "EenVandaag Survey Panel, Wave 10-22"								///
	54 "EenVandaag Survey Panel, Wave 10-25"								///
	55 "EenVandaag Survey Panel, Wave 11-03"								///
	56 "EenVandaag Survey Panel, Wave 11-15"								///
	57 "EenVandaag Survey Panel, Wave 12-01"								///
	58 "EenVandaag Survey Panel, Wave 12-04"								///
	59 "EenVandaag Survey Panel, Wave 12-05"								///
	60 "EenVandaag Survey Panel, Wave 12-07"								///
	61 "EenVandaag Survey Panel, Wave 12-09"								///
	62 "EenVandaag Survey Panel, Wave 12-12"								///
	63 "EenVandaag Survey Panel, Wave 12-13"								///
	64 "EenVandaag Survey Panel, Wave 12-14"								///
	65 "EenVandaag Survey Panel, Wave 12-15"								///
	66 "EenVandaag Survey Panel, Wave 12-16"								///
	67 "EenVandaag Survey Panel, Wave 12-21"								///
	68 "Eurobarometer 21"													///
	69 "Eurobarometer 36"													///
	70 "Eurobarometer 39.0"													///
	71 "Eurobarometer 44.3"													///
	72 "Eurobarometer 46.0"													///
	73 "European Election Studies 2004"										///
	74 "European Values Study 2008"											///
	75 "Family Survey Dutch Population, 2000"								///
	76 "Family Survey Dutch Population, 2003"								///
	77 "Income Inequality, Income Politics and Redistribution Preferences"	///
	78 "International Social Survey Programme 2006"							///
	79 "Individual Freedom of Choice in the Field of Social Insurance"		///
	80 "LISS Panel, 2008"													///
	81 "LISS Panel, 2010"													///
	82 "LISS Panel, 2012"													///
	83 "NIPO Weekly Surveys 1982, Week 15"									///
	84 "NIPO Weekly Surveys 1982, Week 36"									///
	85 "NIPO Weekly Surveys 1983, Week 6"									///
	86 "NIPO Weekly Surveys 1983, Week 18"									///
	87 "NIPO Weekly Surveys 1983, Week 36"									///
	88 "NIPO Weekly Surveys 1984, Week 9"									///
	89 "NIPO Weekly Surveys 1984, Week 11"									///
	90 "NIPO Weekly Surveys 1984, Week 41"									///
	91 "NIPO Weekly Surveys 1985, Week 1"									///
	92 "NIPO Weekly Surveys 1985, Week 27"									///
	93 "NIPO Weekly Surveys 1986, Week 19"									///
	94 "NIPO Weekly Surveys 1986, Week 25"									///
	95 "NIPO Weekly Surveys 1986, Week 30"									///
	96 "NIPO Weekly Surveys 1986, Week 43"									///
	97 "NIPO Weekly Surveys 1987, Week 13"									///
	98 "NIPO Weekly Surveys 1988, Week 27"									///
    99 "NIPO Weekly Surveys 1988, Week 33"									///
   100 "NIPO Weekly Surveys 1988, Week 50"									///
   101 "NIPO Weekly Surveys 1990, Week 32"									///
   102 "NIPO Weekly Surveys 1990, Week 34"									///
   103 "NIPO Weekly Surveys 1991, Week 14"									///
   104 "NIPO Weekly Surveys 1991, Week 43"									///
   105 "NIPO Weekly Surveys 1992, Week 11"									///
   106 "NIPO Weekly Surveys 1992, Week 26"									///
   107 "NIPO Weekly Surveys 1993, Week 35"									///
   108 "NIPO Weekly Surveys 1994, Week 10"									///
   109 "Dutch Parliamentary Election Studies, 1981"							///
   110 "Dutch Parliamentary Election Studies, 1989"							///
   111 "Dutch Parliamentary Election Studies, 1994"							///
   112 "Dutch Parliamentary Election Studies, 2002"							///
   113 "Dutch Parliamentary Election Studies, 2006"							///
   114 "Dutch Parliamentary Election Studies, 2010"							///
   115 "Dutch Parliamentary Election Studies, 2012"							///
   116 "Public Opinion on Social Security and Labor in the Netherlands"		///
   117 "Justice Criteria and Income Inequality"								///
   118 "Sociocultural Developments in the Netherlands"						///
   119 "Socioeconomic Developments in the Netherlands", replace

label define surveylab														///
	 1 "EenVandaag Survey Panel"											///
	 2 "Cultural Changes in the Netherlands"								///
	 3 "NIPO Weekly Surveys"												///
	 4 "Centerdata Telepanel"												///
	 5 "Public Opinion on Social Security and Labor in the Netherlands"		///
	 6 "Dutch Parliamentary Election Study"									///
	 7 "LISS Panel"															///
	 8 "Continu Onderzoek Burgerperspectieven"								///
	 9 "International Surveys"												///
	10 "Other", replace

label define nocodelab														///
	1 "Partial change"														///
	2 "Unable to code policy outcome", replace

label values data datalab
label values survey surveylab
label values nocode nocodelab
format data %30.0g
format survey %30.0g

gen question=""
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==1
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==2
replace question="Which of the following measures do you think the government should take to reduce energy consumption? Institute a car-free day." if id==3
replace question="Which of the following measures do you think the government should take to reduce energy consumption? Provide higher subsidies on home insulation." if id==4
replace question="Which of the following measures do you think the government should take to reduce energy consumption? Higher taxes for cars with high fuel consumption." if id==5
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the minimum wage by more than other wages." if id==6
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase taxes on higher incomes." if id==7
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the inheritance tax." if id==8
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the amount of money that is spent on development aid." if id==9
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase defense spending." if id==10
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase indirect taxes on beverages and tobacco." if id==11
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase indirect taxes on daily necessities of life." if id==12
replace question="What do you prefer: to build more nuclear plants in the Netherlands, only maintain the existing nuclear plants, or shut down the existing nuclear plants?" if id==13
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the minimum wage by more than other wages." if id==14
replace question="At this moment two nuclear power plants operate in the Netherlands, in Dodewaard and in Borssele. Do you think these plants should be kept operating or do you think that they should be closed down?" if id==15
replace question="Please indicate for each statement whether you agree completely, agree, don't agree and don't disagree, disagree, or disagree completely. The Netherlands should, if necessary independently from the rest of NATO, set a good example and ban all nuclear weapons from its territory." if id==16
replace question="Please indicate whether you support or oppose the following measures? Increasing the minimum wage." if id==17
replace question="Please indicate whether you support or oppose the following measures? Introducing a maximum wage." if id==18
replace question="In the past, there was compulsory voting. People had to go to the polling station, even though they could decide to not vote or vote blank when they arrived there. Do you think compulsory voting for elections should be reinstituted?" if id==19
replace question="Are you in favor of abolishing the minimum youth wage?" if id==20
replace question="Are you in favor of abolishing the minimum wage in general?" if id==21
replace question="Are you for or against reducing unemployment benefits from 80% of the previous wage to 70%?" if id==22
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==23
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==24
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the amount of money that is spent on development aid." if id==25
replace question="What do you prefer: to build more nuclear plants in the Netherlands, only maintain the existing nuclear plants, or shut down the existing nuclear plants?" if id==26
replace question="What do you think, should the Dutch nuclear power plants be closed down or stay in operation?" if id==27
replace question="In built-up areas, the maximum speed for vehicles is currently 50 kilometers per hour. Do you think this is too fast, too slow or acceptable?" if id==28
replace question="What is your view on the speed limit on highways? Should this remain 100 kilometers per hour or change to something else?" if id==29
replace question="I will now ask your opinion on a number of items. Will you please, for each item, select on this list the answer which best describes your own opinion? Military expenditures should be reduced." if id==30
replace question="What do you think, should our country remain a member of NATO or not?" if id==31
replace question="Stores are currently allowed to be open until 6 o'clock at night. There are plants to extend this to 7 o'clock at night. Are you in favor or opposed to this?" if id==32
replace question="There are plans to construct a pipeline in the Waddenzee, which would transport oil and gas from the North Sea to the province of Groningen. Do you think the government should approve this or not?" if id==33
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the minimum wage by more than other wages." if id==34
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase indirect taxes on daily necessities of life." if id==35
replace question="Minister Brinkman wants to institute fines for television stations if they show or mention brands, manufacturers etc. because this would constitute advertising. Do you think this is a good or a bad measure?" if id==36
replace question="Have you heard or read about proposals to replace various social services with a free basic income of 450 guilders a month for Dutch citizens from the age of 18? Do you think it is a good or a bad idea to provide everyone with such a free minimum income?" if id==37
replace question="There should be shorter school holidays and fewer days off for school children, so that more time can be spent on education." if id==38
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the inheritance tax." if id==39
replace question="There are people who want to ban the Center Party and the Center Democrats. Would you be in favor of such a proposal, so they can no longer participate in elections?" if id==40
replace question="Every company has to pay 40 cents in corporate tax for every guilder they make in profit. Do you think this is a reasonable percentage, too high or too low?" if id==41
replace question="To put pressure on the South African government, several countries have put sanctions in place and started boycotts. Should our country join such measures?" if id==42
replace question="What should the maximum speed be on divided highways?" if id==43
replace question="Please indicate for each statement to what extent you agree or disagree with it. The government should provide everyone with a minimum income." if id==44
replace question="Please indicate for each statement to what extent you agree or disagree with it. The government should spend less on social security benefits." if id==45
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==46
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==47
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the amount of money that is spent on development aid." if id==48
replace question="What do you prefer: to build more nuclear plants in the Netherlands, only maintain the existing nuclear plants, or shut down the existing nuclear plants?" if id==49
replace question="In most countries outside of the Netherlands, one is obliged to always carry a passport or other form of identification. Would you be in favor of introducing this in our country as well, so the obligation to always carry identification?" if id==50
replace question="Do you think the current minimum wage should remain as it is, or do you think it should change? The minimum wage is currently 1500 guilders a month for people who are 23 or older with a non-working partner." if id==51
replace question="Do you think there should be a maximum income?" if id==52
replace question="Do you think the current net minimum benefits should stay as they are or change? Minimum benefits are currently 1500 guilders a month for a household of two adults, the same as the minimum wage." if id==53
replace question="Minimum social security benefits are currently the same for families with children and families without children. It is sometimes said that people with children should get more benefits than people without children. Do you agree with this?" if id==54
replace question="Do you think the Netherlands should resume development aid to Suriname?" if id==55
replace question="What do you think, should our country remain a member of NATO or not?" if id==56
replace question="There are suggestions to institute a real commercial television station. So one where all the programs are paid for through commercials. Are you for or against such a station?" if id==57
replace question="At this moment two nuclear power plants operate in the Netherlands, in Dodewaard and in Borssele. Do you think these plants should be kept operating or do you think that they should be closed down?" if id==58
replace question="At this moment, travel costs are tax deductible. To reduce environmental pollution, some people suggest we should abolish this tax deduction. Do you completely agree, agree, disagree or completely disagree with this proposal?" if id==59
replace question="Would you indicate with the help of this showcard to what degree you are in agreement with each of the statements? The Netherlands should, if necessary independently of the other NATO countries, give a good example and reduce the number of nuclear weapons on its territory." if id==60
replace question="There have been proposals to treat severe traffic violations as crimes from now on, which would mean penalties could be much harsher and a prison sentence is even possible. Do you support or oppose this proposal?" if id==61
replace question="Do you think the Netherlands should join a boycott of oil from Iraq and Kuwait?" if id==62
replace question="In a number of countries, including the Netherlands, organ transplantation is only possible with explicit permission: this is the permission system. In several other countries, organs are always allowed to be transplanted, unless the deceased has objected to this beforehand: this is the no-objection system. Which of these two systems do you prefer?" if id==63
replace question="Do you think the minimum wage for adults should be increased, decreased or kept the same? Or should the minimum wage be abolished altogether?" if id==64
replace question="Do you think the minimum youth wage should be increased, decreased or kept the same? Or should the minimum youth wage be abolished altogether?" if id==65
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==66
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==67
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the amount of money that is spent on development aid." if id==68
replace question="Several countries have adopted or are about to adopt a law which bans all forms of direct or indirect advertising of tobacco products. Are you, personally, for or against such a ban?" if id==69
replace question="Would you consider it a good idea or a bad idea to make all legal Dutch citizens carry personal identification?" if id==70
replace question="The Simons plan is a system of obligatory health insurance for everyone. What is your opinion of this Simons plan?" if id==71
replace question="Do you think the average age for early retirement should be increased, decreased or kept the same?" if id==72
replace question="According to some people, the government should only provide a kind of social assistance to unemployed and disabled people in the future. People who want additional benefits must take out supplementary insurance and pay a premium for it themselves. Are you in favor of or against such a 'mini-system' in social security?" if id==73
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the inheritance tax." if id==74
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase the minimum wage by more than other wages." if id==75
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase defense spending." if id==76
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase indirect taxes on daily necessities of life." if id==77
replace question="What do you think, should our country remain a member of NATO or not?" if id==78
replace question="Are you for or against replacing the guilder with a European currency?" if id==79
replace question="Some people think the Reformed Political Party [SGP] should be banned as long as they do not allow women to become members. Other people think such a ban would go too far. To what extent do you agree with the statement that the Reformed Political Party should be banned as long as they do not allow women?" if id==80
replace question="Another possibility that is sometimes discussed in newspapers and television is the introduction of a basic income. Are you for or against the introduction of such a basic income?" if id==81
replace question="Which of the following measures do you think the government should take to reduce energy consumption? Institute a car-free day." if id==82
replace question="Do you think that homosexual couples should, or should not, have the right to marry each other?" if id==83
replace question="The government currently sets a minimum wage and a minimum youth wage. There are proposals to abolish this legal minimum wage. Wages would then be decided by deliberation between employer and employee and between unions and employer organizations. Are you in favor or opposed to abolishing the legal minimum wage?" if id==84
replace question="Now we want to ask you a few questions about the shop closing law. Are you for or against extending the opening hours of food shops?" if id==85
replace question="To what extent do you agree or disagree with the following statements? If both parents work, they should receive financial compensation to pay for childcare." if id==86
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==87
replace question="All political parties have been talking about the level of social security benefits and the minimum wage lately. Do you think the minimum wage should be lowered?" if id==88
replace question="All political parties have been talking about the level of social security benefits and the minimum wage lately. Do you think unemployment benefits under the unemployment law [WW] should be lowered?" if id==89
replace question="At the beginning of this line are people and parties who think that additional nuclear plants should be built in the Netherlands (at number 1); at the end of this line are people and parties who think that no nuclear plants should be built at all (at number 7). Where would you place yourself on this line?" if id==90
replace question="Abortion clinics currently receive government subsidies, provided they meet the legal requirements with regard to abortion. Do you think the government should subsidize abortion clinics?" if id==91
replace question="The opening of the Gender Preselection Clinic in Utrecht, which claims to be able to determine the sex of embryos with great accuracy, caused a lot of commotion a few months ago. Do you think the government should take measures with regards to such a clinic?" if id==92
replace question="It is currently the case that immigrants who have legally been in the Netherlands for 5 years can only vote in local elections. Which of the above options fits closest with your opinion? Multiple answers are possible. Immigrants should not have the right to vote at all." if id==93
replace question="It is currently the case that immigrants who have legally been in the Netherlands for 5 years can only vote in local elections. Which of the above options fits closest with your opinion? Multiple answers are possible. Immigrants should be allowed to vote during municipal elections." if id==94
replace question="It is currently the case that immigrants who have legally been in the Netherlands for 5 years can only vote in local elections. Which of the above options fits closest with your opinion? Multiple answers are possible. Immigrants should be allowed to vote for the States-Provincial." if id==95
replace question="It is currently the case that immigrants who have legally been in the Netherlands for 5 years can only vote in local elections. Which of the above options fits closest with your opinion? Multiple answers are possible. Immigrants should be allowed to vote for the national parliament." if id==96
replace question="It is currently the case that immigrants who have legally been in the Netherlands for 5 years can only vote in local elections. Which of the above options fits closest with your opinion? Multiple answers are possible. Immigrants should be allowed to vote for the European parliament." if id==97
replace question="The government will probably decide to institute a binding referendum. A binding referendum means that the Dutch people are asked to express their judgment about a decision of the Dutch government through a referendum. When a majority of Dutch people rejects the decision, and turnout is high enough, the decision can be blocked. In general, what is your opinion of the idea of a binding referendum?" if id==98
replace question="One of the measures announced in the government memo 'Gezond en Wel' is the restriction of the sale of cigarettes and cigars to tobacco stores. What is your opinion of this measure?" if id==99
replace question="The recent government memo also talks about a restriction or ban on advertisements of tobacco products. Which of the views on the screen best reflects your opinion? (A) Advertising for tobacco advertising should be liberalized, so also allowed on radio and TV again; (B) Regulation of tobacco advertising should stay the way it currently is: not on radio/TV and with an explicit warning; (C) Tobacco advertising should only be allowed in tobacco stores; (D) Tobacco advertising should be banned altogether." if id==100
replace question="Another option considered in the memo 'Gezond en Wel' by the ministry of health is an increase in excise duties on tobacco. What do you think should happen to the excise duties on tobacco?" if id==101
replace question="Finally we would like to know how you feel about a general ban on smoking." if id==102
replace question="You currently have to pay 3,51 guilders in excise duties on a pack of 25 cigarettes that costs 6,15 guilders. Do you think this is too much or too little?" if id==103
replace question="Would you consider it fair if smokers had to pay higher health premiums due to a higher risk of lung and heart diseases?" if id==104
replace question="To what extent do you agree with the following statement? The financial distinction between paid and volunteer work should disappear by instituting a basic income for everyone." if id==105
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==106
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Shortening the work week for everyone with a full-time job." if id==107
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Give bonuses to companies if they hire long-term unemployed or disabled people." if id==108
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Make it mandatory for companies to hire long-term unemployed people or partially disabled people." if id==109
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Make it mandatory for companies to implement positive discrimination for ethnic minorities." if id==110
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Make it mandatory for companies to implement positive discrimination towards women." if id==111
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Give bonuses to companies if they hire ethnic minorities." if id==112
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Increase pension premiums for higher incomes." if id==113
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Increase the pension age (for instance from 65 to 67 years)." if id==114
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Make pensioners with higher incomes pay state pension premiums, instead of nothing, which is currently the case." if id==115
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Increase the current pension contributions." if id==116
replace question="Can you indicate how strongly you are in favor or opposed to the following measures? Lower state pensions." if id==117
replace question="Do you think pensioners with a high income should receive the same state pension as others, a lower state pension or none at all?" if id==118
replace question="If someone turns 65 and retires, how high do you think the state pension should be compared to their previous income?" if id==119
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Unemployment benefits." if id==120
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Social assistance." if id==121
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Widow and orphan's pension." if id==122
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Sickness benefits." if id==123
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Child benefits." if id==124
replace question="If it were up to you, would you lower the various social security arrangements, leave them as they are, or increase them? Minimum social security benefits." if id==125
replace question="Do you think single people without a partner or children should pay premiums for the general widow and orphan law [AWW]?" if id==126
replace question="Do you think people with a high income should receive the same child benefits as others, less child benefits or none at all?" if id==127
replace question="Do you think that we should pay much more or much less attention in the Netherlands to increasing defense spending?" if id==128
replace question="To what extent do you agree or disagree with the following statement? The Netherlands should stop giving development aid to countries that refuse to take back their own citizens." if id==129
replace question="Are you for or against a Benefit Entitlement (Residence Status) Act that makes it so that immigrants are checked even more strictly than they currently are when it comes to their right to use government services?" if id==130
replace question="What do you think should happen to the number of public television stations? (A) The situation should stay as it is; (B) The number of public Dutch stations should be reduced from three to two; (C) There should be one public station; (D) The three public stations should all disappear." if id==131
replace question="Do you think it's justified that you have to pay a local fee on top of your license fee in the future to pay for local public radio?" if id==132
replace question="Do you think it is a good or a bad idea to set a maximum on the price of the basic health insurance [basispakket]?" if id==133
replace question="How long do you think a lifelong prison sentence should last?" if id==134
replace question="During in vitro fertilization, ova and sperm cells are brought together outside of the woman's body, so that embryos can develop. Some of these embryos are inserted into the womb of the woman in order to develop further there. If the treatment is successful, some embryos are left over. Would you consider it justified if these embryos were to be used for scientific research?" if id==135
replace question="Do you think that, apart from consultation with parents and family members, the attending physicians have to take that responsibility [for euthanasia] alone because they are experts and know the case? Or do you think there should be separate advisory bodies to which doctors present such a case so that they can share responsibility?" if id==136
replace question="Do you think the minimum wage for adults should be increased, decreased or kept the same? Or should the minimum wage be abolished altogether?" if id==137
replace question="Do you think the minimum youth wage should be increased, decreased or kept the same? Or should the minimum youth wage be abolished altogether?" if id==138
replace question="According to some people, the government should only provide a kind of social assistance to unemployed and disabled people in the future. People who want additional benefits must take out supplementary insurance and pay a premium for it themselves. Are you in favor of or against such a 'mini-system' in social security?" if id==139
replace question="Another possibility that is sometimes discussed in newspapers and television is the introduction of a basic income. Are you for or against the introduction of such a basic income?" if id==140
replace question="Are you for or against a system of 'mandatory work for everyone who is able to'? (People who are unemployed or disabled and can't find work on their own get a job from the government, where they do work that is useful for society. In exchange, they receive the minimum wage. People who refuse this job get no money from the government.)" if id==141
replace question="Do you think that the Dutch government should spend more, the same amount as today or less on health care?" if id==142
replace question="Do you think the (development) aid provided by the Dutch government should increase a lot, increase a little, decrease a little or decrease a lot?" if id==143
replace question="To what extent do you agree with the following statements? On some of the important decisions in our country, voters should be able to vote by means of a so-called referendum." if id==144
replace question="Should the government maintain a minimum wage - the lowest wage for which employers can hire someone?" if id==145
replace question="If so, how high should that minimum wage be?" if id==146
replace question="Using tests, some hereditary diseases can be detected at the start of the pregnancy in the unborn child. Are you in favor of such tests?" if id==147
replace question="What do you think: should the cloning of humans be made illegal in all circumstances?" if id==148
replace question="Minister Netelenbos thinks she should get a chance to show that road pricing reduces traffic jams. What do you think? (A) Minister Netelenbos should get this chance; (B) Minister Netelenbos should not get this chance." if id==149
replace question="Should there be a central hotline for violence on the street (or in nightlife venues)?" if id==150
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should increase art subsidies." if id==151
replace question="Can you indicate whether you strongly agree, agree, disagree or strongly disagree with the following measures? The government should extend compulsory education to the age of 18." if id==152
replace question="Can you indicate to what extent you agree with the following statements? Unemployment benefits are currently too high in the Netherlands" if id==153
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The unemployment law [WW]." if id==154
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The pension law [AOW]." if id==155
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The survivor's pension law [ANW]." if id==156
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The disability laws [WAO, WAZ, Wajong]." if id==157
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The sickness benefits law [Ziektewet]." if id==158
replace question="Can you indicate whether the following welfare measures are currently too generous, acceptable, or not generous enough? The social assistance law [ABW]." if id==159
replace question="To what extent do you agree or disagree with the following statements? If both parents work, they should receive financial compensation to pay for childcare." if id==160
replace question="For the following statements, can you indicate whether you agree or disagree? Gay marriage should be made illegal." if id==161
replace question="Would you indicate with the help of this showcard to what degree you are in agreement with each of the statements? On some of the important decisions in our country, voters should be able to vote by means of a so-called referendum." if id==162
replace question="Citizens from other EU member-countries who live in the Netherlands should be entitled to vote in local elections." if id==163
replace question="Here are some things the government might do for the economy. Please show which actions you are in favour of and which you are against. Reducing the working week to create more jobs." if id==164
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. The environment." if id==165
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. The military and defense." if id==166
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. The police and law enforcement." if id==167
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. Culture and the arts." if id==168
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. Education." if id==169
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. Unemployment benefits." if id==170
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. Health." if id==171
replace question="Listed below are various areas of government spending. Please show whether you would like to see more or less government spending in each area. Remember that if you say 'much more', it might require a tax increase to pay for it. Old age pensions." if id==172
replace question="At the beginning of this line are people and parties who think that additional nuclear plants should be built in the Netherlands (at number 1); at the end of this line are people and parties who think that no nuclear plants should be built at all (at number 7). Where would you place yourself on this line?" if id==173
replace question="Could you indicate to what extent you agree or disagree with the following statement? Stores should always be closed on Sundays." if id==174
replace question="Could you indicate to what extent you agree or disagree with the following statement? The tax advantage for people with a mortgage, the mortgage interest relief, should be abolished." if id==175
replace question="Could you indicate to what extent you agree or disagree with the following statement? Gay marriage should be made illegal." if id==176
replace question="Would you indicate with the help of this showcard to what degree you are in agreement with each of the statements? Adoption by gay couples should be possible." if id==177
replace question="Could you indicate to what extent you agree or disagree with the following statement? The Netherlands should spend more money on development aid." if id==178
replace question="Could you indicate to what extent you agree or disagree with the following statement? The immigration of Muslims into the Netherland should be halted completely." if id==179
replace question="We should abolish the referendum in the Netherlands." if id==180
replace question="It is a good idea to reduce the number of marriage migrants from 30,000 to 5,000 a year." if id==181
replace question="People and organizations that help illegal migrants (like municipalities) should be criminally prosecuted." if id==182
replace question="Children up to 12 years old who commit criminal offenses should be admitted to closed institutions for as long as necessary." if id==183
replace question="There should be a ban on prayer calls with sound amplification from mosques." if id==184
replace question="What should the Netherlands do in Uruzgan after 1 August 2008? (A) The Netherlands should withdraw; (B) The Netherlands should continue the current mission in the same way; (C) Stay, but with fewer troops and resources; (D) Stay, with more troops and resources." if id==185
replace question="Do you think the national government should spend more or less money on the following goal? Improving mobility (public transport and roads)." if id==186
replace question="Do you think the national government should spend more or less money on the following goal? Contributing to the development of poor countries." if id==187
replace question="Do you think the national government should spend more or less money on the following goal? Stimulating culture and the arts." if id==188
replace question="Do you think the national government should spend more or less money on the following goal? Improving education." if id==189
replace question="Do you think the national government should spend more or less money on the following goal? Improving (health) care." if id==190
replace question="Do you think the national government should spend more or less money on the following goal? Stimulating research and technology." if id==191
replace question="To what extent do you agree with the following statements? On some of the important decisions in our country, voters should be able to vote by means of a so-called referendum." if id==192
replace question="Gay couples can now marry each other. Do you think this is a good thing, a bad thing, or do you not care?" if id==193
replace question="Do you think the Dutch king/queen should have political influence, or do you think he/she should limit themselves to ceremonial functions?" if id==194
replace question="Should the Netherlands continue to pay for Geert Wilders' personal security in the future or not?" if id==195
replace question="Are you for or against the presence of Dutch troops in Afghanistan?" if id==196
replace question="Which statement about the sale of soft drugs by coffee shops do you support the most? (A) Coffee shops can stay open and sell soft drugs; (B) All coffee shops should be closed." if id==197
replace question="How would you feel about the following statements? Do you agree or disagree with them? Homosexual couples should be able to adopt children." if id==198
replace question="The minimum age at which someone can buy alcohol should be: lower / higher." if id==199
replace question="The minimum age at which someone can buy cannabis in a coffeeshop should be: lower / higher." if id==200
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures?  The price of alcohol should be raised." if id==201
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures? Alcohol advertisements should be banned." if id==202
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures? Happy hours in bars and discos should be banned." if id==203
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures? Supermarkets should not sell alcopop such as breezers." if id==204
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures? Supermarkets should not sell any alcohol at all." if id==205
replace question="Below is a list of measures that the government can take to prevent youngsters from starting to use alcohol and drugs. To what extent do you support these measures? People younger than 16 years that drink alcohol should be punished for it." if id==206
replace question="And to what extent do you support the following measures? It should be permitted to sell cannabis in coffeeshops." if id==207
replace question="And to what extent do you support the following measures? Coffeeshops should not be located in the vicinity of secondary schools." if id==208
replace question="And to what extent do you support the following measures? People younger than 18 years that use cannabis should be punished for it." if id==209
replace question="To what extent do you support the following measures? Alcohol use should be prohibited." if id==210
replace question="To what extent do you support the following measures? Cannabis use should be prohibited." if id==211
replace question="To what extent do you agree or disagree with the following statements? The law should continue to distinguish between soft drugs and hard drugs." if id==212
replace question="Do you think the current investigation into the war in Iraq in sufficient, or do you think there should be a parliamentary inquiry?" if id==213
replace question="What do you think should happen to the pension age if you could choose between these two options? (A) It should remain 65; (B) It should be increased to 67." if id==214
replace question="Which of these measures do you find acceptable? Retirement benefits should be cut." if id==215
replace question="Which of these measures do you find acceptable? Pension contributions should be raised." if id==216
replace question="The former head of the MKB [branch organization for small and medium-sized companies], Hans de Boer, favors a 'work offensive' that would involve large infrastructural projects. Do you think this is a good idea or not?" if id==217
replace question="What do you think: should the Netherlands buy two Joint Strike Fighter jets or not?" if id==218
replace question="The Netherlands has led the NATO mission in Uruzgan since 1 August 2006. Are you for or against the presence of Dutch troops in Afghanistan?" if id==219
replace question="The Netherlands should completely withdraw from Uruzgan after 2010." if id==220
replace question="Gay couples can now marry each other. Do you think this is a good thing, a bad thing, or do you not care?" if id==221
replace question="What do you think should happen to the mortgage interest relief?" if id==222
replace question="To what extent do you agree or disagree with the following statements? Voters should not only influence the composition of the Second Chamber of parliament but also the composition of the government coalition." if id==223
replace question="To what extent do you agree or disagree with the following statements? People who smoke should pay more in health insurance premiums. (2)" if id==224
replace question="To what extent do you agree or disagree with the following statements? People who are overweight should pay more in health insurance premiums. (2)" if id==225
replace question="To what extent do you agree or disagree with the following statements? People who are older than 75 should pay more in health insurance premiums. (2)" if id==226
replace question="To what extent do you agree or disagree with the following statements? People who live healthy should pay less in health insurance premiums." if id==227
replace question="To what extent do you agree or disagree with the following statements? All Islamic schools in the Netherlands should be closed." if id==228
replace question="To what extent do you agree or disagree with the following statements? Government employees should be allowed to wear a headscarf during work." if id==229
replace question="To what extent do you agree or disagree with the following statements? It should not be allowed to build new mosques in the Netherlands." if id==230
replace question="Do you support or oppose an immigration ban for low-educated migrants with poor prospects?" if id==231
replace question="Do you think the Dutch king/queen should have political influence, or do you think he/she should limit themselves to ceremonial functions?" if id==232
replace question="Do you think the queen should play a role during the formation of a coalition or do you think the queen should not play a role during the formation?" if id==233
replace question="Should the Netherlands continue with the European currency, the euro, or should it not?" if id==234
replace question="Do you, on the whole, take a positive or negative view on the introduction of this measure in the Netherlands? Extending powers of police officers to stop and search citizens without specifically suspecting them of having committed a punishable offense." if id==235
replace question="Would you indicate with the help of this showcard to what degree you are in agreement with each of the statements? On some of the important decisions in our country, voters should be able to vote by means of a so-called referendum." if id==236
replace question="What do you think: should the Netherlands have nuclear weapons or not?" if id==237
replace question="To what extent do you agree with the following statements about double passports? Ministers should not be allowed to have double nationalities." if id==238
replace question="When it comes to the planning of the Netherlands and the living environment, which direction do you think we should go in? (A) Reduce maximum speeds on roads to reduce noise and air pollution; (B) Increase maximum speeds as much as possible." if id==239
replace question="Do you think it is a good idea to replace the current provinces with four large regions, or do you think it's not?" if id==240
replace question="A merger of the provinces of North Holland, South Holland, Utrecht and Flevoland is in my opinion: a good idea / a bad idea." if id==241
replace question="A merger of the provinces of Groningen, Friesland and Drenthe is in my opinion: a good idea / a bad idea." if id==242
replace question="A merger of the provinces of Overijssel and Gelderland is in my opinion: a good idea / a bad idea." if id==243
replace question="A merger of the provinces of Limburg, North Brabant and Zeeland is in my opinion: a good idea / a bad idea." if id==244
replace question="Do you think building a coal-fired power plant in the Eemshaven is a good idea or a bad idea?" if id==245
replace question="Merging Flevoland, North Holland and Utrecht into a large urban province [Randstadprovincie] is: a good idea / a bad idea." if id==246
replace question="Do you think a second nuclear plant should be built in Zeeland?" if id==247
replace question="Do you think the introduction of the 'weed pass' is generally a good thing or a bad thing?" if id==248
replace question="The 'weed pass' should be introduced simultaneously throughout the Netherlands and not only in Limburg first." if id==249
replace question="Do you think the national government should spend more or less money on the following goal? Improving mobility (public transport and roads)." if id==250
replace question="Do you think the national government should spend more or less money on the following goal? Stimulating culture and the arts." if id==251
replace question="Do you think the national government should spend more or less money on the following goal? Improving education." if id==252
replace question="Do you think the national government should spend more or less money on the following goal? Stimulating research and technology." if id==253
replace question="To what extent do you agree with the following statements? On some of the important decisions in our country, voters should be able to vote by means of a so-called referendum." if id==254
replace question="To what extent do you agree with the following statements? Gay marriage should be made illegal." if id==255
replace question="Do you think the Dutch king/queen should have political influence, or do you think he/she should limit themselves to ceremonial functions?" if id==256
replace question="Do you support or oppose going forward with the current pension agreement?" if id==257
replace question="Do you support or oppose the proposed budget cut to reduce unemployment benefits by five percent?" if id==258
replace question="Do you support or oppose the proposed budget cut to no longer link benefits to wages?" if id==259
replace question="Do you support or oppose the proposed budget cut to ask for a personal contribution of 5 euros per visit to a general practitioner?" if id==260
replace question="Do you support or oppose the proposed budget cut to gradually decrease the deductible excess to 775 euros?" if id==261
replace question="Do you support or oppose the proposed budget cut to reduce the budget for development aid to 0.6 percent of GDP?" if id==262
replace question="Do you support or oppose the proposed budget cut to reduce the budget for development aid further than to 0.6 percent of GDP?" if id==263
replace question="Do you support or oppose the proposed budget cut to replace the study grant with a loan system?" if id==264
replace question="Do you support or oppose the proposed budget cut to increase the low VAT rate from six to eight percent?" if id==265
replace question="Do you support or oppose the proposed budget cut to increase the high VAT rate from twenty to twenty-one percent?" if id==266
replace question="Do you support or oppose the proposed budget cut to introduce a congestion charge in traffic?" if id==267
replace question="There should be a referendum on the question whether the Netherlands should give up the euro or not." if id==268
replace question="Do you support or oppose the proposed budget cut to increase the low VAT rate from six to seven percent?" if id==269
replace question="Do you support or oppose freezing (almost) all wages in the Netherlands as much as possible?" if id==270
replace question="Do you support or oppose the proposed budget cut to ask for a personal contribution of nine euros per drug prescription?" if id==271
replace question="Do you support or oppose abolishing the mortgage interest relief for people who want to take out a new redemption-free mortgage?" if id==272
replace question="The Netherlands should stick to the EU norm and make sure the budget deficit is not above three percent next year." if id==273
replace question="Do you support or oppose the proposed budget cut to increase the pension age faster than was previously agreed upon?" if id==274
replace question="Do you support or oppose the proposed budget cut to institute a zero line for government employees?" if id==275
replace question="Do you support or oppose the proposed budget cut to let people pay more for health care costs?" if id==276
replace question="Do you agree or disagree with the proposed investment in lowering the property transfer tax?" if id==277
replace question="Do you think it is a good thing or a bad thing that the 'animal cops' may be abolished?" if id==278
replace question="Do you support or oppose the proposed budget cut to ask for a personal contribution for every day spent in the hospital?" if id==279
replace question="Do you support or oppose the proposed budget cut to remove the walker from the standard health care package?" if id==280
replace question="Do you support or oppose the proposed budget cut not to adjust the tax brackets to inflation?" if id==281
replace question="Do you support or oppose the proposed budget cut to increase excise duties on cigarettes and tobacco?" if id==282
replace question="Do you support or oppose the proposed budget cut to increase excise duties on alcohol?" if id==283
replace question="Do you support or oppose the proposed budget cut to address the compensation of travel expenses?" if id==284
replace question="Do you think it is a good idea or a bad idea to introduce an electoral threshold in the Netherlands?" if id==285
replace question="Are you for or against reducing the duration of unemployment benefits?" if id==286
replace question="Do you think employers should pay for the first six months of unemployment benefits or not?" if id==287
replace question="Vocational studies with good job prospects should be made cheaper than other studies." if id==288
replace question="Technical studies should become free because there is a shortage of technicians." if id==289
replace question="Do you generally support or oppose budget cuts in the standard health care package [basispakket]?" if id==290
replace question="Do you support or oppose cutting back the general law on exceptional medical expenses [AWBZ]" if id==291
replace question="Are you for or against a system of health care-saving [zorgsparen] in the Netherlands?" if id==292
replace question="Do you support or oppose the increase in the deductible excess from 220 euros to 350 euros in 2013?" if id==293
replace question="Do you think the deductible excess should be equally high for everyone, or do you think it should become dependent on one's income?" if id==294
replace question="To what extent do you agree or disagree with the following statements? People who have an unhealthy lifestyle should pay more in health insurance premiums than people with healthy lifestyles." if id==295
replace question="To what extent do you agree or disagree with the following statements? People who smoke should pay more in health insurance premiums. (2)" if id==296
replace question="To what extent do you agree or disagree with the following statements? People who are overweight should pay more in health insurance premiums. (2)" if id==297
replace question="To what extent do you agree or disagree with the following statements? People who are older than 75 should pay more in health insurance premiums. (2)" if id==298
replace question="Do you think people should be allowed to take out a mortgage that is higher than the value of their house?" if id==299
replace question="If you could choose, would you prefer the queen to play an important role during the formation of a coalition or would you prefer parliament to arrange the formation without the queen?" if id==300
replace question="Please indicate to what extent you agree or disagree with these statements. The state should no longer give students a study grant, but only a study loan under favorable conditions." if id==301
replace question="To what extent do you agree or disagree with the following statement? The Netherlands should lend money to European countries with financial problems, like Greece, Portugal and Ireland." if id==302
replace question="Could you indicate to what extent you agree or disagree with the following statement? The tax advantage for people with a mortgage, the mortgage interest relief, should be abolished." if id==303
replace question="Could you indicate to what extent you agree or disagree with the following statement? The Netherlands should spend less money on development aid." if id==304
replace question="To what extent do you agree or disagree with the following statement? Within a few years, the retirement age should be increased to 67 years." if id==305
format %-506s question

label var id 		"ID"
label var year		"Survey year"
label var data 		"Data source"
label var survey 	"Survey organization"
label var spending	"Questions about spending (dummy)"
label var pass		"Policy change passed (dummy)"
label var nocode	"Reason outcome was not coded"
label var iall		"Preferences, overall"
label var i05		"Preferences at 5th income percentile"
label var i10		"Preferences at 10th income percentile"
label var i20		"Preferences at 20th income percentile"
label var i30		"Preferences at 30th income percentile"
label var i50		"Preferences at 50th income percentile"
label var i70		"Preferences at 70th income percentile"
label var i80		"Preferences at 80th income percentile"
label var i90		"Preferences at 90th income percentile"
label var i95		"Preferences at 95th income percentile"
label var i10e10	"Preferences at 10th income and 10th education percentile"
label var i10e50	"Preferences at 10th income and 50th education percentile"
label var i10e90	"Preferences at 10th income and 90th education percentile"
label var i50e10	"Preferences at 50th income and 10th education percentile"
label var i50e50	"Preferences at 50th income and 50th education percentile"
label var i50e90	"Preferences at 50th income and 90th education percentile"
label var i90e10	"Preferences at 90th income and 10th education percentile"
label var i90e50	"Preferences at 90th income and 50th education percentile"
label var i90e90	"Preferences at 90th income and 90th education percentile"
label var men		"Preferences of men"
label var women		"Preferences of women"
label var iallv		"Prefereces of voters, overall"
label var i10v		"Prefereces of voters at 10th income percentile"
label var i50v		"Prefereces of voters at 50th income percentile"
label var i90v		"Prefereces of voters at 90th income percentile"
label var iallnv	"Prefereces of non-voters, overall"
label var i10nv		"Prefereces of non-voters at 10th income percentile"
label var i50nv		"Prefereces of non-voters at 10th income percentile"
label var i90nv		"Prefereces of non-voters at 10th income percentile"
label var unempt	"Unemployment (t)"
label var growtht	"Economic growth (t)"
label var debtt		"Government debt (t)"
label var lrgovt	"Left-right position of government (t)"
label var unempt4	"Unemployment (average, t - t+4)"
label var growtht4	"Economic growth (average, t - t+4)"
label var debtt4	"Government debt (average, t - t+4)"
label var lrgovt4	"Left-right position of government (average, t - t+4)"
label var question	"Survey question text"

* Removing the small versions of the datasets
forval a=1/119 {
	rm "$data\data`a'.dta"
	}

save "$data\Schakel_2020_Chapter3_1_Data.dta", replace
